function assertNotInstanceOf assertNotInstanceOf<A, T>(actual: A, unexpectedType: new (...args: any[]) => T, msg?: string): asserts actual is Exclude<A, T> Make an assertion that obj is not an instance of type. If so, then throw. Type Parameters 🔗 A 🔗 T Parameters 🔗 actual: A 🔗 unexpectedType: new (...args: any[]) => T 🔗 msg: string Return Type 🔗 asserts actual is Exclude<A, T>