UNPKG

typescript-logging

Version:

Library for logging, written in typescript, can be used by normal es5+ javascript as well.

14 lines (10 loc) 247 B
export class Timeout { /** * Invoke function later with given delay (uses settimeout) * @param f Function * @param delay Delay */ public static invokeLater(f: () => void, delay: number): void { setTimeout(f(), delay); } }