Comparing version 0.0.2 to 0.0.3
@@ -13,3 +13,3 @@ export declare type Action = ModifyAction | PatchAction | ReplaceAction; | ||
declare type ActionOptions = Record<string, Function>; | ||
export declare type ActionOptions = Record<string, Function>; | ||
@@ -51,3 +51,3 @@ declare type Actions<A> = A extends ActionOptions ? { | ||
declare type DefineModel<S extends State, A extends ActionOptions, V extends ViewOptions, P extends Params> = ModelOptions<S, A, V, P> & {}; | ||
export declare type DefineModel<S extends State, A extends ActionOptions, V extends ViewOptions, P extends Params> = ModelOptions<S, A, V, P> & {}; | ||
@@ -80,3 +80,3 @@ export declare const defineModel: <S extends StateObject, A extends ActionOptions, V extends ViewOptions<S>, P extends unknown>(modelOptions: ModelOptions<S, A, V, P>) => DefineModel<S, A, V, P>; | ||
declare interface FunctionModel<S extends State, A extends ActionOptions, V extends ViewOptions> { | ||
export declare interface FunctionModel<S extends State, A extends ActionOptions, V extends ViewOptions> { | ||
(context: ModelOptionContext): ObjectModel<S, A, V>; | ||
@@ -150,3 +150,3 @@ } | ||
declare type ModelOptions<S extends State, A extends ActionOptions, V extends ViewOptions, P extends Params> = ObjectModel<S, A, V> | FunctionModel<S, A, V>; | ||
export declare type ModelOptions<S extends State, A extends ActionOptions, V extends ViewOptions, P extends Params> = ObjectModel<S, A, V> | FunctionModel<S, A, V>; | ||
@@ -201,3 +201,3 @@ declare interface ModelPatchEvent extends ModelChangeEventBase, PatchArgs { | ||
declare type ObjectModel<S extends State, A extends ActionOptions, V extends ViewOptions> = { | ||
export declare type ObjectModel<S extends State, A extends ActionOptions, V extends ViewOptions> = { | ||
state: S; | ||
@@ -265,3 +265,3 @@ actions?: A; | ||
declare type ViewOptions<State = any> = Record<string, ((s: State) => any) | (() => any)>; | ||
export declare type ViewOptions<State = any> = Record<string, ((s: State) => any) | (() => any)>; | ||
@@ -268,0 +268,0 @@ declare type Views<ViewOptions> = { |
{ | ||
"name": "doura", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Reactive and intuitive state management", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
448157