mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-01 03:03:09 +02:00
6 lines
223 B
TypeScript
6 lines
223 B
TypeScript
|
// we are using {} as "any non-nullish value" as expected
|
||
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||
|
export function isNotNull<T extends {}>(input: T | undefined | null): input is T {
|
||
|
return input != null;
|
||
|
}
|