js2ts: chiefCenter
- common: unwrap_any - jQuery export 수정 - axios로 변경 - moment -> luxon
This commit is contained in:
1 parent
a89696afbb
commit
1ef2b7398e
23 files changed
+376
-214
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { Nullable, NotNullExpected } from "../util";
|
||||
|
||||
|
||||
export function unwrap_any<T>(result: Nullable<unknown>): T {
|
||||
if (result === null || result === undefined) {
|
||||
throw new NotNullExpected();
|
||||
}
|
||||
return result as T;
|
||||
}
|
||||
Reference in new issue
Block a user