mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-28 01:28:52 +00:00
5a95613dd7
Signed-off-by: Cameron Diver <cameron@balena.io>
15 lines
331 B
TypeScript
15 lines
331 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>;
|
|
|
|
type UnwrappedPromise = T extends PromiseLike<infer U> ? U : T;
|
|
|
|
type DeepPartial<T> = T extends object
|
|
? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
: T;
|