phecda-core 1.3.0 → 1.3.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.ts +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface NameSpace {
|
|
2
2
|
[name: string]: Phecda;
|
|
3
3
|
}
|
|
4
4
|
interface UsePipeOptions {
|
|
@@ -21,7 +21,7 @@ interface Phecda {
|
|
|
21
21
|
type ClassValue<I> = {
|
|
22
22
|
[P in keyof I]: I[P] extends Function ? undefined : I[P];
|
|
23
23
|
};
|
|
24
|
-
interface
|
|
24
|
+
interface Events {
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
declare function plainToClass<M extends new (...args: any) => any, Data extends Record<PropertyKey, any>>(Model: M, input: Data, options?: UsePipeOptions): Promise<{
|
|
@@ -105,9 +105,9 @@ declare const activeInstance: Record<string, any>;
|
|
|
105
105
|
declare function injectProperty(key: string, value: any): Record<string, any>;
|
|
106
106
|
declare function getProperty(key: string): any;
|
|
107
107
|
|
|
108
|
-
declare function Watcher(eventName: keyof
|
|
108
|
+
declare function Watcher(eventName: keyof Events, options?: {
|
|
109
109
|
once: boolean;
|
|
110
110
|
}): (obj: any, key: string) => void;
|
|
111
111
|
declare function Storage(storeKey?: string): (target: any, key?: PropertyKey) => void;
|
|
112
112
|
|
|
113
|
-
export { ClassValue, Clear, Err, Global, Ignore, Init, P, Phecda,
|
|
113
|
+
export { ClassValue, Clear, Err, Events, Global, Ignore, Init, NameSpace, P, Phecda, PhecdaHandler, Pipe, Rule, Storage, Tag, UsePipeOptions, Watcher, activeInstance, addDecoToClass, classToValue, getExposeKey, getHandler, getIgnoreKey, getInitEvent, getModelState, getProperty, getState, getTag, init, injectProperty, isPhecda, mergeOptions, mergeState, plainToClass, regisHandler, regisInitEvent, register, registerAsync, setExposeKey, setIgnoreKey, setModalVar, snapShot, to, validate };
|