js2ts: chiefCenter

- common: unwrap_any
- jQuery export 수정
- axios로 변경
- moment -> luxon
This commit is contained in:
2021-08-16 01:06:17 +09:00
parent a89696afbb
commit 1ef2b7398e
23 changed files with 376 additions and 214 deletions
+9
View File
@@ -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;
}