當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。