mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 12:26:43 -06:00
ad7ecbaf37
Co-Authored-By: rinsuki <428rinsuki+contact.github@gmail.com>
5 lines
223 B
TypeScript
5 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;
|
|
}
|