Skip to content

Commit

Permalink
Ignore deprecation lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Sep 6, 2024
1 parent afd77e6 commit 0682459
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/models/reflections/declaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions src/lib/models/reflections/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
Expand Down

0 comments on commit 0682459

Please sign in to comment.