Skip to content

Commit 3e2a9a4

Browse files
committed
Fix some compiler warnings with newer target settings
1 parent add8949 commit 3e2a9a4

File tree

7 files changed

+18
-16
lines changed

7 files changed

+18
-16
lines changed

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"prettier": "3.3.3",
4747
"puppeteer": "^23.3.0",
4848
"ts-node": "^10.9.2",
49-
"typescript": "5.6.1-rc",
49+
"typescript": "5.6.3",
5050
"typescript-eslint": "^8.4.0"
5151
},
5252
"files": [

src/lib/converter/utils/repository.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,7 @@ export class GitRepository implements Repository {
175175
*/
176176
export class RepositoryManager {
177177
private cache = new Map<string, Repository | undefined>();
178-
private assumedRepo = new AssumedRepository(
179-
this.basePath,
180-
this.gitRevision,
181-
this.sourceLinkTemplate,
182-
);
178+
private assumedRepo: AssumedRepository;
183179

184180
constructor(
185181
private basePath: string,
@@ -188,7 +184,13 @@ export class RepositoryManager {
188184
private sourceLinkTemplate: string,
189185
private disableGit: boolean,
190186
private logger: Logger,
191-
) {}
187+
) {
188+
this.assumedRepo = new AssumedRepository(
189+
this.basePath,
190+
this.gitRevision,
191+
this.sourceLinkTemplate,
192+
);
193+
}
192194

193195
/**
194196
* Check whether the given file is placed inside a repository.

src/lib/models/reflections/parameter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type { Serializer, JSONOutput, Deserializer } from "../../serialization";
1414
export class ParameterReflection extends Reflection {
1515
readonly variant = "param";
1616

17-
override parent?: SignatureReflection;
17+
declare parent?: SignatureReflection;
1818

1919
defaultValue?: string;
2020

src/lib/models/reflections/signature.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export class SignatureReflection extends Reflection {
2727
super(name, kind, parent);
2828
}
2929

30-
override kind!:
30+
declare kind:
3131
| ReflectionKind.SetSignature
3232
| ReflectionKind.GetSignature
3333
| ReflectionKind.IndexSignature
3434
| ReflectionKind.CallSignature
3535
| ReflectionKind.ConstructorSignature;
3636

37-
override parent!: DeclarationReflection;
37+
declare parent: DeclarationReflection;
3838

3939
/**
4040
* A list of all source files that contributed to this reflection.

src/lib/models/reflections/type-parameter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export type VarianceModifier =
2323
export class TypeParameterReflection extends Reflection {
2424
readonly variant = "typeParam";
2525

26-
override parent?: DeclarationReflection | SignatureReflection;
26+
declare parent?: DeclarationReflection | SignatureReflection;
2727

2828
type?: SomeType;
2929

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"module": "Node16",
4-
"lib": ["es2021"],
4+
"lib": ["es2023"],
55
"target": "es2021",
66

77
// Add our `ts` internal types

0 commit comments

Comments
 (0)