当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript fluxx.Action函数代码示例

本文整理汇总了TypeScript中fluxx.Action函数的典型用法代码示例。如果您正苦于以下问题:TypeScript Action函数的具体用法?TypeScript Action怎么用?TypeScript Action使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了Action函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1:

import { Action } from 'fluxx'
import {Company} from "../../company/companyModel";
import {Show} from "../../show/showModel";
import {Play} from "../playModel";

export const initialize = Action<{company: Company, show: Show, play: Play, playsFromShow: Array<Play>}>("initialize")
开发者ID:kneelnrise,项目名称:vep,代码行数:6,代码来源:playPageActions.ts

示例2:

import { Action } from 'fluxx'
import {ShowWithDependencies} from "../showModel";

export const updateList = Action<Array<ShowWithDependencies>>("updateList")
开发者ID:kneelnrise,项目名称:vep,代码行数:4,代码来源:showListActions.ts

示例3: Action

import { Action } from 'fluxx'
import {Company} from "../../company/companyModel";
import {Show} from "../showModel";

export const initialize = Action<{company: Company, show?: Show}>("initialize")

export const updateTitle = Action<string>("updateTitle")

export const updateAuthor = Action<string>("updateAuthor")

export const updateDirector = Action<string>("updateDirector")

export const updateContent = Action<string>("updateContent")

export const updateErrors = Action<Array<string>>("updateErrors")

export const closeErrors = Action("closeErrors")

export const success = Action("success")
开发者ID:kneelnrise,项目名称:vep,代码行数:19,代码来源:showFormActions.ts

示例4: Action

import { Action } from 'fluxx'

export const updatePassword = Action<string>("updatePassword")

export const updatePassword2 = Action<string>("updatePassword2")

export const updateErrors = Action<Array<string>>("updateErrors")

export const closeErrors = Action("closeErrors")

export const success = Action("success")
开发者ID:kneelnrise,项目名称:vep,代码行数:11,代码来源:resetPasswordActions.ts

示例5:

import { Action } from 'fluxx'
import {Reservation} from "../reservationModel";

export const initialize = Action<string>("initialize")

export const reservationLoaded = Action<Array<Reservation>>("reservationLoaded")
开发者ID:kneelnrise,项目名称:vep,代码行数:6,代码来源:reservationListActions.ts

示例6:

import { Action } from 'fluxx'
import {PageInformation} from "../pageModel";

export const initialize = Action<PageInformation>("initialize")
开发者ID:kneelnrise,项目名称:vep,代码行数:4,代码来源:pageReadActions.ts

示例7: Action

import { Action } from 'fluxx'
import {Theater} from "../theaterModel";

export const initializeEmpty = Action("initializeEmpty")

export const initialize = Action<Theater>("initialize")

export const updateName = Action<string>("updateName")

export const updateAddress = Action<string>("updateAddress")

export const updateContent = Action<string>("updateContent")

export const addSeat = Action("addSeat")

export const removeSeat = Action<number>("removeSeat")

export const selectSeat = Action<number>("selectSeat")

export const updateSeatCode = Action<{index: number, value: string}>("updateSeatCode")

export const updateSeatX = Action<{index: number, value: number}>("updateSeatX")

export const updateSeatY = Action<{index: number, value: number}>("updateSeatY")

export const updateSeatWidth = Action<{index: number, value: number}>("updateSeatWidth")

export const updateSeatHeight = Action<{index: number, value: number}>("updateSeatHeight")

export const updateSeatType = Action<{index: number, value: string}>("updateSeatType")
开发者ID:kneelnrise,项目名称:vep,代码行数:30,代码来源:theaterFormActions.ts

示例8: Action

import { Action } from 'fluxx'
import {Theater} from "../../theater/theaterModel";
import {Company} from "../../company/companyModel";
import {Show} from "../../show/showModel";
import {Play} from "../playModel";

export const initialize = Action<{company: Company, show: Show, play?: Play, theaters: Array<Theater>}>("initialize")

export const updateTheater = Action<string>("updateTheater")

export const addDate = Action("addDate")

export const removeDate = Action<number>("removeDate")

export const updateDate = Action<{index: number, value: Date}>("updateDate")

export const updateReservationEndDate = Action<{index: number, value: Date}>("updateReservationEndDate")

export const addPrice = Action("addPrice")

export const removePrice = Action<number>("removePrice")

export const updatePriceName = Action<{index: number, value: string}>("updatePriceName")

export const updatePriceValue = Action<{index: number, value: number}>("updatePriceValue")

export const updatePriceCondition = Action<{index: number, value: string}>("updatePriceCondition")

export const updateErrors = Action<Array<string>>("updateErrors")

export const closeErrors = Action("closeErrors")
开发者ID:kneelnrise,项目名称:vep,代码行数:31,代码来源:playFormActions.ts

示例9: Action

import { Action } from 'fluxx'
import {UserSessionAuthorization} from "./sessionModel"
import {SessionUser} from "./sessionStore"

export const login = Action<UserSessionAuthorization>("login")

export const logout = Action("logout")

export const updateUser = Action<SessionUser>("updateUser")
开发者ID:kneelnrise,项目名称:vep,代码行数:9,代码来源:sessionActions.ts

示例10:

import { Action } from 'fluxx'
import {Company} from "../companyModel";
import {Show} from "../../show/showModel";

export const initialize = Action<{company: Company, shows: Array<Show>}>("initialize")
开发者ID:kneelnrise,项目名称:vep,代码行数:5,代码来源:companyPageActions.ts


注:本文中的fluxx.Action函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。