Skip to content

Commit

Permalink
fix: cleanup and build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wespickett committed Aug 3, 2023
1 parent f70f8bb commit d2bd0e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function generateUnionType(
if (Array.isArray(memberSchema)) {
throw new NotSupportedError('array in an enum', memberSchema);
}
return generateType(memberSchema, refMap);
return generateType(memberSchema as JSONSchema4, refMap);
}
})(),
);
Expand Down
8 changes: 4 additions & 4 deletions packages/utils/src/json-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export type JSONSchema4TypeName =
*/
export type JSONSchema4Type =
| boolean
| JSONSchema4Object
| JSONSchema4Array
| JSONSchema4Object
| number
| string
| null;
Expand Down Expand Up @@ -66,7 +66,7 @@ export type JSONSchema4 =
| JSONSchema4AnyOfSchema
| JSONSchema4AnySchema
| JSONSchema4ArraySchema
| JSONSchema4BoleanSchema
| JSONSchema4BooleanSchema
| JSONSchema4MultiSchema
| JSONSchema4NullSchema
| JSONSchema4NumberSchema
Expand Down Expand Up @@ -210,7 +210,7 @@ export interface JSONSchema4MultiSchema
Omit<JSONSchema4ArraySchema, 'enum' | 'type'>,
Omit<JSONSchema4StringSchema, 'enum' | 'type'>,
Omit<JSONSchema4NumberSchema, 'enum' | 'type'>,
Omit<JSONSchema4BoleanSchema, 'enum' | 'type'>,
Omit<JSONSchema4BooleanSchema, 'enum' | 'type'>,
Omit<JSONSchema4NullSchema, 'enum' | 'type'>,
Omit<JSONSchema4AnySchema, 'enum' | 'type'> {
type: JSONSchema4TypeName[];
Expand Down Expand Up @@ -475,7 +475,7 @@ export interface JSONSchema4NumberSchema extends JSONSchema4Base {
/**
* @see https://json-schema.org/understanding-json-schema/reference/boolean.html
*/
export interface JSONSchema4BoleanSchema extends JSONSchema4Base {
export interface JSONSchema4BooleanSchema extends JSONSchema4Base {
type: 'boolean';

/**
Expand Down

0 comments on commit d2bd0e1

Please sign in to comment.