We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9faf32 commit 1102d58Copy full SHA for 1102d58
src/json-type/type/classes.ts
@@ -2024,7 +2024,7 @@ export class MapType<T extends Type> extends AbstractType<schema.MapSchema<Schem
2024
}
2025
2026
public random(): Record<string, unknown> {
2027
- let length = Math.round(Math.random() * 10);
+ const length = Math.round(Math.random() * 10);
2028
const res: Record<string, unknown> = {};
2029
for (let i = 0; i < length; i++) res[RandomJson.genString(length)] = this.type.random();
2030
return res;
0 commit comments