From 93016e9772358995ee0b24691b51ac316a933ffe Mon Sep 17 00:00:00 2001 From: Jarrod Mosen Date: Thu, 18 Jan 2018 04:40:53 +1300 Subject: [PATCH] fix: make `meta` optional (default to `undefined`) (#94) --- src/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index 7e02074..93e7d6e 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,4 +1,4 @@ -export interface FluxStandardAction { +export interface FluxStandardAction { /** * The `type` of an action identifies to the consumer the nature of the action that has occurred. * Two actions with the same `type` MUST be strictly equivalent (using `===`) @@ -26,26 +26,26 @@ export interface FluxStandardAction { meta: Meta; } -export interface ErrorFluxStandardAction extends FluxStandardAction { +export interface ErrorFluxStandardAction extends FluxStandardAction { error: true; } /** * Alias for FluxStandardAction. */ -export type FSA = FluxStandardAction; +export type FSA = FluxStandardAction; /** * Alias for ErrorFluxStandardAction. */ -export type ErrorFSA = ErrorFluxStandardAction; +export type ErrorFSA = ErrorFluxStandardAction; /** * Returns `true` if `action` is FSA compliant. */ -export function isFSA(action: any): action is FluxStandardAction; +export function isFSA(action: any): action is FluxStandardAction; /** * Returns `true` if `action` is FSA compliant error. */ -export function isError(action: any): action is ErrorFluxStandardAction; +export function isError(action: any): action is ErrorFluxStandardAction;