balena-supervisor/typings/global.d.ts
2020-01-17 13:06:27 +00:00

9 lines
178 B
TypeScript

interface Dictionary<T> {
[key: string]: T;
}
type Callback<T> = (err?: Error, res?: T) => void;
type Nullable<T> = T | null | undefined;
type Resolvable<T> = T | Promise<T>;