We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The joi schema:
const ChainInfo = Joi.object({ id: Joi.string().optional(), host: Joi.string() .uri({ scheme: ['http', 'https'] }) .required() .allow('none'), }) .options(options) .meta({ unknownType: 'string', className: 'ChainInfoType' });
The generated type:
export interface ChainInfoType { host: 'none'; id?: string; }
Expected type:
export interface ChainInfoType { host: 'string'; id?: string; }
The text was updated successfully, but these errors were encountered:
This is working as designed
Sorry, something went wrong.
No branches or pull requests
The joi schema:
The generated type:
Expected type:
The text was updated successfully, but these errors were encountered: