Skip to content

Commit

Permalink
fix: add missing defaultLabel to SimpleSchemaOptions type
Browse files Browse the repository at this point in the history
  • Loading branch information
aldeed committed Dec 11, 2022
1 parent e8f91dc commit b113d9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/SimpleSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ function standardizeDefinition (def: SchemaKeyDefinition): StandardSchemaKeyDefi
function checkAndScrubDefinition (
fieldName: string,
definition: StandardSchemaKeyDefinition,
options: any,
options: SimpleSchemaOptions,
allKeys: Set<string>
): void {
if (definition.type == null) throw new Error(`${fieldName} key is missing "type"`)
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export type GetErrorMessageFn = (error: ValidationError, label: string | null) =

export interface SimpleSchemaOptions {
clean?: CleanOptions
defaultLabel?: string
getErrorMessage?: GetErrorMessageFn
humanizeAutoLabels?: boolean
keepRawDefinition?: boolean
Expand Down

0 comments on commit b113d9c

Please sign in to comment.