js2ts: chiefCenter
- common: unwrap_any - jQuery export 수정 - axios로 변경 - moment -> luxon
This commit is contained in:
@@ -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