UNPKG

function-tree

Version:
20 lines (14 loc) 390 B
import { FunctionTree } from '../' export interface DebounceFunction extends FunctionTree { displayName: string (context: { path: string }): Promise<any> } export interface Debounce { (time: number): DebounceFunction shared(): (time: number) => DebounceFunction } export const debounce: Debounce export interface Wait { (time: number): FunctionTree } export const wait: Wait