fix: Fix schema key type error #8517 (#8538)

This commit is contained in:
tamaina 2022-04-24 11:43:15 +09:00 committed by GitHub
parent af14dada37
commit cce6bce024

View file

@ -89,7 +89,7 @@ export interface Schema extends OfSchema {
readonly optional?: boolean;
readonly items?: Schema;
readonly properties?: Obj;
readonly required?: ReadonlyArray<keyof NonNullable<this['properties']>>;
readonly required?: ReadonlyArray<Extract<keyof NonNullable<this['properties']>, string>>;
readonly description?: string;
readonly example?: any;
readonly format?: string;