copy files
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import type { Nullable } from "@util/Nullable";
|
||||
import { NotNullExpected } from "@util/NotNullExpected";
|
||||
|
||||
export function unwrap<T>(result: Nullable<T>): T {
|
||||
if (result === null || result === undefined) {
|
||||
throw new NotNullExpected();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user