Files
bitburner-src/src/utils/TypeAssertion.ts
T
2024-03-28 21:52:37 -04:00

5 lines
324 B
TypeScript

import type { Unknownify } from "../types";
// This function is empty because Unknownify<T> is a typesafe assertion on any object with no runtime checks needed.
// eslint-disable-next-line @typescript-eslint/no-empty-function
export function assertLoadingType<T extends object>(val: object): asserts val is Unknownify<T> {}