|
|
@ -1,7 +1,7 @@ |
|
|
|
import { _Widget } from "./widget"; |
|
|
|
import { _Widget } from "./widget"; |
|
|
|
|
|
|
|
|
|
|
|
export interface _base { |
|
|
|
export interface _base { |
|
|
|
assert: (v: any, is: Function) => Boolean |
|
|
|
assert: (v: any, is: Function) => Boolean; |
|
|
|
|
|
|
|
|
|
|
|
warn: (message: any) => Boolean; |
|
|
|
warn: (message: any) => Boolean; |
|
|
|
|
|
|
|
|
|
|
@ -15,7 +15,7 @@ export interface _base { |
|
|
|
|
|
|
|
|
|
|
|
packageItems: (items: any[], layouts: any[]) => any[]; |
|
|
|
packageItems: (items: any[], layouts: any[]) => any[]; |
|
|
|
|
|
|
|
|
|
|
|
formatEL: <T>(obj: T) => {el: T} | T |
|
|
|
formatEL: <T>(obj: T) => { el: T } | T; |
|
|
|
|
|
|
|
|
|
|
|
stripEL: <T>(obj: { el: T } | T) => T; |
|
|
|
stripEL: <T>(obj: { el: T } | T) => T; |
|
|
|
|
|
|
|
|
|
|
@ -263,7 +263,7 @@ export interface _base { |
|
|
|
|
|
|
|
|
|
|
|
deepClone: <T>(obj: T) => T; |
|
|
|
deepClone: <T>(obj: T) => T; |
|
|
|
|
|
|
|
|
|
|
|
deepExtend: merge['deepExtend']; |
|
|
|
deepExtend: merge["deepExtend"]; |
|
|
|
|
|
|
|
|
|
|
|
isDeepMatch: (object: any, attrs: any) => boolean; |
|
|
|
isDeepMatch: (object: any, attrs: any) => boolean; |
|
|
|
|
|
|
|
|
|
|
@ -307,7 +307,7 @@ export interface _base { |
|
|
|
|
|
|
|
|
|
|
|
wrap: (value: any, wrapper: Function) => Function; |
|
|
|
wrap: (value: any, wrapper: Function) => Function; |
|
|
|
|
|
|
|
|
|
|
|
nextTick: (func: Function) => Promise<any>; |
|
|
|
nextTick: (func?: Function) => Promise<any>; |
|
|
|
|
|
|
|
|
|
|
|
random: (min?: number, max?: number, floating?: boolean) => number; |
|
|
|
random: (min?: number, max?: number, floating?: boolean) => number; |
|
|
|
|
|
|
|
|
|
|
|