tsoa
This commit is contained in:
10
node_modules/@tsoa/runtime/dist/utils/assertNever.js
generated
vendored
Normal file
10
node_modules/@tsoa/runtime/dist/utils/assertNever.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.assertNever = assertNever;
|
||||
/**
|
||||
* This function does exhaustiveness checking to ensure that you have discriminated a union so that no type remains. Use this to get the typescript compiler to help discover cases that were not considered.
|
||||
*/
|
||||
function assertNever(value) {
|
||||
throw new Error(`Unhandled discriminated union member: ${JSON.stringify(value)}`);
|
||||
}
|
||||
//# sourceMappingURL=assertNever.js.map
|
||||
Reference in New Issue
Block a user