Skip to content

Commit

Permalink
Remove Error type from toConstant
Browse files Browse the repository at this point in the history
Similar to #1949 -- toConstant never returns an Error; it only throws an error.
  • Loading branch information
epicfaace authored Jul 27, 2020
1 parent 655829b commit 4f12eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ declare module '@rjsf/core' {

export function isConstant(schema: JSONSchema7): boolean;

export function toConstant(schema: JSONSchema7): JSONSchema7Type | JSONSchema7['const'] | Error;
export function toConstant(schema: JSONSchema7): JSONSchema7Type | JSONSchema7['const'];

export function isSelect(_schema: JSONSchema7, definitions?: FieldProps['registry']['definitions']): boolean;

Expand Down

0 comments on commit 4f12eb2

Please sign in to comment.