mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-30 18:47:00 +00:00
96c68166a1
Change-type: patch Signed-off-by: Rich Bayliss <rich@balena.io> Signed-off-by: Cameron Diver <cameron@balena.io>
15 lines
334 B
TypeScript
15 lines
334 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> = T extends PromiseLike<infer U> ? U : T;
|
|
|
|
type DeepPartial<T> = T extends object
|
|
? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
: T;
|