balena-supervisor/typings/global.d.ts
Cameron Diver d1e1297f6d
misc: Add Nullable<T> helper type
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-21 11:18:41 +00:00

10 lines
147 B
TypeScript

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