// Type definitions for once v1.3.3 // Project: https://github.com/isaacs/once // Definitions by: Denis Sokolov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface SimpleFunction { (...args: any[]): Result; } interface OnceFunction extends SimpleFunction { called: boolean; value: Result; } interface Once { (f: SimpleFunction): OnceFunction; proto: Function; } declare module "once" { var once: Once; export default once; }