mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-28 03:47:03 +02:00
BLADEBURNER: Typesafety / refactoring (#1154)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
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> {}
|
||||
Reference in New Issue
Block a user