source:
trip-planner-front/node_modules/ajv/lib/vocabularies/discriminator/types.ts
Last change on this file was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 251 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | import type {ErrorObject} from "../../types" |
2 | ||
3 | export enum DiscrError { | |
4 | Tag = "tag", | |
5 | Mapping = "mapping", | |
6 | } | |
7 | ||
8 | export type DiscrErrorObj<E extends DiscrError> = ErrorObject< | |
9 | "discriminator", | |
10 | {error: E; tag: string; tagValue: unknown}, | |
11 | string | |
12 | > |
Note:
See TracBrowser
for help on using the repository browser.