Skip to content

Commit b113d9c

Browse files
committed
fix: add missing defaultLabel to SimpleSchemaOptions type
1 parent e8f91dc commit b113d9c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/SimpleSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ function standardizeDefinition (def: SchemaKeyDefinition): StandardSchemaKeyDefi
12101210
function checkAndScrubDefinition (
12111211
fieldName: string,
12121212
definition: StandardSchemaKeyDefinition,
1213-
options: any,
1213+
options: SimpleSchemaOptions,
12141214
allKeys: Set<string>
12151215
): void {
12161216
if (definition.type == null) throw new Error(`${fieldName} key is missing "type"`)

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export type GetErrorMessageFn = (error: ValidationError, label: string | null) =
101101

102102
export interface SimpleSchemaOptions {
103103
clean?: CleanOptions
104+
defaultLabel?: string
104105
getErrorMessage?: GetErrorMessageFn
105106
humanizeAutoLabels?: boolean
106107
keepRawDefinition?: boolean

0 commit comments

Comments
 (0)