From 0682459efdcff3eea5922ae1d63679dc64421cd9 Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Fri, 6 Sep 2024 09:10:15 -0600 Subject: [PATCH] Ignore deprecation lint --- src/lib/models/reflections/declaration.ts | 2 ++ src/lib/models/reflections/signature.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/lib/models/reflections/declaration.ts b/src/lib/models/reflections/declaration.ts index 084db47e8..f8a2797a0 100644 --- a/src/lib/models/reflections/declaration.ts +++ b/src/lib/models/reflections/declaration.ts @@ -358,8 +358,10 @@ export class DeclarationReflection extends ContainerReflection { ); // TypeDoc 0.25, remove check with 0.28. + // eslint-disable-next-line @typescript-eslint/no-deprecated if (obj.indexSignature) { this.indexSignatures = [ + // eslint-disable-next-line @typescript-eslint/no-deprecated de.revive(obj.indexSignature, (r) => de.constructReflection(r)), ]; } else { diff --git a/src/lib/models/reflections/signature.ts b/src/lib/models/reflections/signature.ts index d50e88496..f8c369bf3 100644 --- a/src/lib/models/reflections/signature.ts +++ b/src/lib/models/reflections/signature.ts @@ -137,7 +137,9 @@ export class SignatureReflection extends Reflection { obj.sources, (t) => new SourceReference(t.fileName, t.line, t.character), ); + // eslint-disable-next-line @typescript-eslint/no-deprecated if (obj.typeParameter) { + // eslint-disable-next-line @typescript-eslint/no-deprecated this.typeParameters = de.reviveMany(obj.typeParameter, (t) => de.constructReflection(t), );