通知部分は残す

Co-Authored-By: rinsuki <428rinsuki+contact.github@gmail.com>
This commit is contained in:
syuilo
2023-03-03 20:43:31 +09:00
parent a7c82eeabc
commit ad7ecbaf37
2 changed files with 35 additions and 54 deletions

View File

@@ -0,0 +1,5 @@
// 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;
}