vest-utils
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"name": "vest-utils", | ||
@@ -4,0 +4,0 @@ "author": "ealush", |
@@ -121,3 +121,3 @@ type DropFirst<T extends unknown[]> = T extends [ | ||
type TStateWildCard = typeof STATE_WILD_CARD; | ||
type TStateMachine<S extends string, A extends S = S> = { | ||
type TStateMachine<S extends string = string, A extends S = S> = { | ||
initial: S; | ||
@@ -135,3 +135,3 @@ states: Partial<{ | ||
}; | ||
type TStateMachineApi<S extends string, A extends S = S> = { | ||
type TStateMachineApi<S extends string = string, A extends S = S> = { | ||
getState: CB<S>; | ||
@@ -142,3 +142,3 @@ initial: CB<S>; | ||
}; | ||
declare function StateMachine<S extends string, A extends S = S>(machine: TStateMachine<S, A>): TStateMachineApi<S, A>; | ||
declare function StateMachine<S extends string = string, A extends S = S>(machine: TStateMachine<S, A>): TStateMachineApi<S, A>; | ||
declare function nonnullish<T>(value: Nullish<T>, error?: string): T; | ||
@@ -194,4 +194,4 @@ declare namespace tinyState { | ||
} | ||
export { createCache as cache, CacheApi, BusType, TinyState, isNullish, isNotNullish, asArray, callEach, hasOwnProperty, isPromise, optionalFunctionValue, _default as assign, defaultTo, invariant, isStringValue, bindNot, either, isBoolean, deferThrow, bus, seq, genSeq, isFunction, mapFirst, greaterThan, longerThan, isNumeric, isNotNumeric, isObject, lengthEquals, lengthNotEquals, numberEquals, numberNotEquals, isNull, isNotNull, isUndefined, isNotUndefined, isArray, isNotArray, isEmpty, isNotEmpty, isPositive, text, TStateMachine, StateMachine, nonnullish, tinyState, StringObject, noop, Predicates }; | ||
export { createCache as cache, CacheApi, BusType, TinyState, isNullish, isNotNullish, asArray, callEach, hasOwnProperty, isPromise, optionalFunctionValue, _default as assign, defaultTo, invariant, isStringValue, bindNot, either, isBoolean, deferThrow, bus, seq, genSeq, isFunction, mapFirst, greaterThan, longerThan, isNumeric, isNotNumeric, isObject, lengthEquals, lengthNotEquals, numberEquals, numberNotEquals, isNull, isNotNull, isUndefined, isNotUndefined, isArray, isNotArray, isEmpty, isNotEmpty, isPositive, text, TStateMachine, StateMachine, TStateMachineApi, nonnullish, tinyState, StringObject, noop, Predicates }; | ||
export type { DropFirst, Stringable, CB, ValueOf, Nullish, Nullable, Maybe, OneOrMoreOf, DynamicValue, BlankValue, Predicate }; | ||
//# sourceMappingURL=vest-utils.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
183290