UNPKG

deleight

Version:

A library with 9 modules for writing more expressive web applications with traditional HTML, CSS and JavaScript.

21 lines (20 loc) 435 B
/** * The type of an object key */ export type IKey = string | number | symbol; export type IDeepKey = IKey | (IKey | any[])[]; export type IMap<T> = { [key: IKey]: T; }; /** * Represents any function */ export interface ICallable<T extends any[] = any, U = any> { (...args: T): U; } /** * The type of the function that returns a specific type of value (<T>). */ export interface IReturns<T> { (...args: any[]): T; }