Skip to content

Commit

Permalink
fix(json-schema): use string & {} instead of string to keep Literal…
Browse files Browse the repository at this point in the history
… Type for ISchema (#3835)
  • Loading branch information
yiyunwan authored May 29, 2023
1 parent 2c41e3e commit 798fde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/json-schema/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export type Stringify<P extends { [key: string]: any }> = {
/**
* Use `string & {}` instead of string to keep Literal Type for ISchema#component and ISchema#decorator
*/
[key in keyof P]?: P[key] | string
[key in keyof P]?: P[key] | (string & {})
}

export type ISchema<
Expand Down

0 comments on commit 798fde7

Please sign in to comment.