mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 05:37:53 +00:00
988a1c9e9a
This updates balena lint to the latest version to enable eslint support and unblock Typescript updates. This is a huge number of changes as the linting rules are much more strict now, requiring modifiying most files in the codebase. This commit also bumps the test dependency `rewire` as that was interfering with the update of balena-lint Change-type: patch
17 lines
395 B
TypeScript
17 lines
395 B
TypeScript
interface Dictionary<T> {
|
|
[key: string]: T;
|
|
}
|
|
|
|
type EmptyObject = Record<string | number | symbol, never>;
|
|
|
|
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;
|