We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f8d2cb commit b20df1fCopy full SHA for b20df1f
1 file changed
src/schema.ts
@@ -26,7 +26,7 @@ export class Schema<T extends TypeMap = any> {
26
public readonly metadataVersion: MetadataVersion;
27
28
constructor(
29
- fields: Field<T[keyof T]>[] | FieldDictionary<T> = [],
+ fields: Field<T[keyof T]>[] | FieldDictionary<T> = {} as FieldDictionary<T>,
30
metadata?: Map<string, string> | null,
31
dictionaries?: Map<number, DataType> | null,
32
metadataVersion = MetadataVersion.V5) {
0 commit comments