-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
I seems that typescript utility types are not supported.
import jwt from 'express-jwt';
import jwks from 'jwks-rsa';
export default interface ConfigOptions extends Omit<jwt.Options, 'secret'>, jwks.ClientOptions {
secret?: Pick<jwt.Options, 'secret'>,
issuer: any,
audience: any
}
Utility types
- Omit
- Pick
The generated schema looks like this.
export const ConfigOptionsSchema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"patternProperties": {
"^[0-9]+$": {
}
},
"type": "object"
};
Same result with --format full
Am I doing something wrong?
raszi, Gjum and imjared
Metadata
Metadata
Assignees
Labels
No labels