mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-10 01:25:38 +08:00
36 lines
855 B
TypeScript
36 lines
855 B
TypeScript
// Type definitions for Shimmer 1.x
|
|
// Project: https://github.com/othiym23/shimmer
|
|
// Definitions by: Kelvin Jin <https://github.com/kjin>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.4
|
|
|
|
declare global {
|
|
interface Function {
|
|
__wrapped?: boolean;
|
|
}
|
|
}
|
|
|
|
declare const shimmer: {
|
|
(options: { logger?(msg: string): void }): void;
|
|
wrap<T extends (...args: any[]) => any>(
|
|
nodule: object,
|
|
name: string,
|
|
wrapper: (original: T) => T
|
|
): void;
|
|
massWrap<T extends (...args: any[]) => any>(
|
|
nodules: object[],
|
|
names: string[],
|
|
wrapper: (original: T) => T
|
|
): void;
|
|
unwrap(
|
|
nodule: object,
|
|
name: string
|
|
): void;
|
|
massUnwrap(
|
|
nodules: object[],
|
|
names: string[]
|
|
): void;
|
|
};
|
|
|
|
export = shimmer;
|