Browse Source

update 类型补充

es6
zsmj 2 years ago
parent
commit
1fef4864b5
  1. 12
      packages/fineui/typescript/core/base.ts
  2. 3
      packages/fineui/typescript/core/foundation.ts
  3. 1
      packages/fineui/typescript/core/var.ts
  4. 1
      packages/fineui/typescript/index.ts

12
packages/fineui/typescript/core/base.ts

@ -403,3 +403,15 @@ export declare function getTime(...args: any[]): number;
* @param obj
*/
export declare function isPromise(obj: any): obj is Promise<any>;
export declare function set<TObject extends object>(
object: TObject,
path: string | string[],
value: any
): TObject;
export declare function get<TObject, TKey extends keyof TObject>(
object: TObject,
path: TKey | [TKey] | string | null | undefined,
defaultValue?: any
): TObject[TKey] | any;

3
packages/fineui/typescript/core/foundation.ts

@ -0,0 +1,3 @@
export declare const _global: any;
export declare const prepares: Function[];

1
packages/fineui/typescript/core/var.ts

@ -129,3 +129,4 @@ export declare const VerticalAlign: {
};
export declare const StartOfWeek: number;
export declare const BlankSplitChar: string;
export declare const Events: Record<string, string>;

1
packages/fineui/typescript/index.ts

@ -1,3 +1,4 @@
export * from "./core/foundation";
export * from "./core/action/action.show";
export * from "./core/action/action";
export * from "./core/behavior/behavior";

Loading…
Cancel
Save