devix 0.0.21 → 0.0.22

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 CHANGED
@@ -20,6 +20,16 @@ type ThrottleOptions = {
20
20
  leading?: boolean
21
21
  trailing?: boolean
22
22
  }
23
+
24
+ interface TestServerOption {
25
+ url: string
26
+ method: string
27
+ handler: (ctx: any, next: any) => any
28
+ }
29
+
30
+ interface ITestServerOptions {
31
+ routes?: Array<TestServerOption>
32
+ }
23
33
  type TIsType = (type: string, target: any) => boolean
24
34
 
25
35
  //! other types
@@ -81,4 +91,6 @@ declare function setTimer(execute: (...args: any[]) => any, delay?: number, imme
81
91
  cancel: () => void;
82
92
  }>;
83
93
 
84
- export { SortType, bubblingSort, compose, currying, debounce, deepClone, formatTimer, insertStr, isType, localCache, sessionCache, setTimer, shallowClone, stringCase, throttle, transformGetParams };
94
+ declare const createTestServer: (options?: ITestServerOptions) => any;
95
+
96
+ export { SortType, bubblingSort, compose, createTestServer, currying, debounce, deepClone, formatTimer, insertStr, isType, localCache, sessionCache, setTimer, shallowClone, stringCase, throttle, transformGetParams };