From fb51209888653a19b13731f8a748372247c5dc8f Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Tue, 11 Jan 2022 13:00:40 +0100 Subject: chore: add @ts-expect-error --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f605e032..cf63c266 100644 --- a/src/index.ts +++ b/src/index.ts @@ -34,7 +34,8 @@ export class Faker { locale: string; localeFallback: string; - readonly definitions = {}; + // @ts-expect-error: will be lazy filled by constructor + readonly definitions: Record = {}; private readonly definitionTypes: DefinitionTypes = { name: [ 'first_name', @@ -180,6 +181,7 @@ export class Faker { } // TODO @Shinigami92 2022-01-11: We may have a bug here for the keys 'title' and 'separator' + // @ts-expect-error types[t].forEach((p) => { Object.defineProperty(this.definitions[t], p, { get: () => { -- cgit v1.2.3