@fesjs/fes-design
Version:
fes-design for PC
22 lines (21 loc) • 1.17 kB
TypeScript
export declare const noop: () => void;
export declare const noopInNoop: () => () => void;
export declare const defaultContainer: () => HTMLElement;
export declare function sleep(ms: number): Promise<void>;
export declare function asyncExpect(fn: () => void, timeout: number): Promise<void>;
export declare const rAF: () => Promise<unknown>;
export declare const hasOwn: (val: object, key: string) => boolean;
export declare const requestAnimationFrame: (func: () => void) => number;
export declare const isFirefox: () => boolean;
export declare const extractPropsDefaultValue: (props: {
[key: string]: any;
}) => {
[key: string]: any;
};
export declare const depx: (value: string | number) => number;
export declare const pxfy: (value: string | number) => string;
export declare const degfy: (value: string | number) => string;
export declare function getParentNode(node: Node): Node | null;
export declare function getScrollParent(node: Node | null): HTMLElement | Document | null;
export declare function concat(arr: any[], arr2: any[]): any[];
export declare function stringify(value: any, onError?: (err: unknown) => void, fallbackValue?: string): string;