phecda-core 3.0.2 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +134 -182
- package/dist/index.mjs +134 -182
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ declare function Ignore(proto: any, key?: PropertyKey): void;
|
|
|
5
5
|
declare function Clear(proto: any, key?: PropertyKey): void;
|
|
6
6
|
declare function Expose(proto: any, key: PropertyKey): void;
|
|
7
7
|
declare function Empty(model: any): void;
|
|
8
|
+
declare function Injectable(): (target: any) => void;
|
|
8
9
|
|
|
9
10
|
declare const SHARE_KEY: unique symbol;
|
|
10
11
|
declare const PHECDA_KEY: unique symbol;
|
|
@@ -42,6 +43,7 @@ interface Handler {
|
|
|
42
43
|
}
|
|
43
44
|
interface Phecda {
|
|
44
45
|
prototype: any;
|
|
46
|
+
__PROMISE_SYMBOL__: Promise<any>;
|
|
45
47
|
[PHECDA_KEY]: {
|
|
46
48
|
__EXPOSE_KEY: Set<PropertyKey>;
|
|
47
49
|
__IGNORE_KEY: Set<PropertyKey>;
|
|
@@ -134,4 +136,4 @@ declare abstract class Base {
|
|
|
134
136
|
private _unmount;
|
|
135
137
|
}
|
|
136
138
|
|
|
137
|
-
export { type AbConstruct, Assign, Base, Bind, type ClassValue, Clear, type Construct, DataMap, Effect, Empty, Err, type Events, Expose, Global, type Handler, If, Ignore, Init, Inject, type InjectData, Isolate, type NameSpace, PHECDA_KEY, type Phecda, Pipeline, Provide, Rule, SHARE_KEY, Storage, type StorageParam, Tag, To, Unique, Unmount, Watcher, type WatcherParam, activeInstance, addDecoToClass, classToPlain, get, getBind, getExposeKey, getHandler, getInject, getOwnExposeKey, getOwnHandler, getOwnIgnoreKey, getOwnState, getOwnStateKey, getPhecdaFromTarget, getShareState, getState, getStateKey, getTag, init, invokeHandler, isAsyncFunc, isPhecda, plainToClass, set, setExposeKey, setHandler, setIgnoreKey, setInject, setPropertyState, setState, setStateKey, snapShot, transformInstance, transformInstanceAsync, transformProperty, transformPropertyAsync };
|
|
139
|
+
export { type AbConstruct, Assign, Base, Bind, type ClassValue, Clear, type Construct, DataMap, Effect, Empty, Err, type Events, Expose, Global, type Handler, If, Ignore, Init, Inject, type InjectData, Injectable, Isolate, type NameSpace, PHECDA_KEY, type Phecda, Pipeline, Provide, Rule, SHARE_KEY, Storage, type StorageParam, Tag, To, Unique, Unmount, Watcher, type WatcherParam, activeInstance, addDecoToClass, classToPlain, get, getBind, getExposeKey, getHandler, getInject, getOwnExposeKey, getOwnHandler, getOwnIgnoreKey, getOwnState, getOwnStateKey, getPhecdaFromTarget, getShareState, getState, getStateKey, getTag, init, invokeHandler, isAsyncFunc, isPhecda, plainToClass, set, setExposeKey, setHandler, setIgnoreKey, setInject, setPropertyState, setState, setStateKey, snapShot, transformInstance, transformInstanceAsync, transformProperty, transformPropertyAsync };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ declare function Ignore(proto: any, key?: PropertyKey): void;
|
|
|
5
5
|
declare function Clear(proto: any, key?: PropertyKey): void;
|
|
6
6
|
declare function Expose(proto: any, key: PropertyKey): void;
|
|
7
7
|
declare function Empty(model: any): void;
|
|
8
|
+
declare function Injectable(): (target: any) => void;
|
|
8
9
|
|
|
9
10
|
declare const SHARE_KEY: unique symbol;
|
|
10
11
|
declare const PHECDA_KEY: unique symbol;
|
|
@@ -42,6 +43,7 @@ interface Handler {
|
|
|
42
43
|
}
|
|
43
44
|
interface Phecda {
|
|
44
45
|
prototype: any;
|
|
46
|
+
__PROMISE_SYMBOL__: Promise<any>;
|
|
45
47
|
[PHECDA_KEY]: {
|
|
46
48
|
__EXPOSE_KEY: Set<PropertyKey>;
|
|
47
49
|
__IGNORE_KEY: Set<PropertyKey>;
|
|
@@ -134,4 +136,4 @@ declare abstract class Base {
|
|
|
134
136
|
private _unmount;
|
|
135
137
|
}
|
|
136
138
|
|
|
137
|
-
export { type AbConstruct, Assign, Base, Bind, type ClassValue, Clear, type Construct, DataMap, Effect, Empty, Err, type Events, Expose, Global, type Handler, If, Ignore, Init, Inject, type InjectData, Isolate, type NameSpace, PHECDA_KEY, type Phecda, Pipeline, Provide, Rule, SHARE_KEY, Storage, type StorageParam, Tag, To, Unique, Unmount, Watcher, type WatcherParam, activeInstance, addDecoToClass, classToPlain, get, getBind, getExposeKey, getHandler, getInject, getOwnExposeKey, getOwnHandler, getOwnIgnoreKey, getOwnState, getOwnStateKey, getPhecdaFromTarget, getShareState, getState, getStateKey, getTag, init, invokeHandler, isAsyncFunc, isPhecda, plainToClass, set, setExposeKey, setHandler, setIgnoreKey, setInject, setPropertyState, setState, setStateKey, snapShot, transformInstance, transformInstanceAsync, transformProperty, transformPropertyAsync };
|
|
139
|
+
export { type AbConstruct, Assign, Base, Bind, type ClassValue, Clear, type Construct, DataMap, Effect, Empty, Err, type Events, Expose, Global, type Handler, If, Ignore, Init, Inject, type InjectData, Injectable, Isolate, type NameSpace, PHECDA_KEY, type Phecda, Pipeline, Provide, Rule, SHARE_KEY, Storage, type StorageParam, Tag, To, Unique, Unmount, Watcher, type WatcherParam, activeInstance, addDecoToClass, classToPlain, get, getBind, getExposeKey, getHandler, getInject, getOwnExposeKey, getOwnHandler, getOwnIgnoreKey, getOwnState, getOwnStateKey, getPhecdaFromTarget, getShareState, getState, getStateKey, getTag, init, invokeHandler, isAsyncFunc, isPhecda, plainToClass, set, setExposeKey, setHandler, setIgnoreKey, setInject, setPropertyState, setState, setStateKey, snapShot, transformInstance, transformInstanceAsync, transformProperty, transformPropertyAsync };
|