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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- interface PhecdaNameSpace {
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 PhecdaEvents {
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 PhecdaEvents, options?: {
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, PhecdaEvents, PhecdaHandler, PhecdaNameSpace, 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-core",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "provide base function and abstract limit to other phecda module ",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",