mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-19 13:40:37 +01:00
452a48e7f4
* fix(server): DriveFile related N+1 query when call note packMany * Update packages/backend/src/misc/is-not-null.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * ignore lint * 途中でやめたやつが混入していた * fix: 順番通りである必要がある場所で順番通りになっていなかった --------- Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.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;
|
|
}
|