function assertExists assertExists<T>(actual: T, msg?: string): asserts actual is NonNullable<T> Make an assertion that actual is not null or undefined. If not then throw. Type Parameters 🔗 T Parameters 🔗 actual: T 🔗 msg: string Return Type 🔗 asserts actual is NonNullable<T>