← Back to index
function assertNotInstanceOf

Make an assertion that obj is not an instance of type. If so, then throw.

Parameters

🔗
actual: A
🔗
unexpectedType: new (...args: any[]) => T
🔗
msg: string

Return Type

🔗
asserts actual is Exclude<A, T>