Skip to content

Commit

Permalink
Bump tsconfig version to es2022 to workaround tsx bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jun 23, 2024
1 parent 1c2af98 commit 9220785
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
14 changes: 8 additions & 6 deletions src/lib/converter/utils/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,7 @@ export class GitRepository implements Repository {
*/
export class RepositoryManager {
private cache = new Map<string, Repository | undefined>();
private assumedRepo = new AssumedRepository(
this.basePath,
this.gitRevision,
this.sourceLinkTemplate,
);
private assumedRepo: Repository;

constructor(
private basePath: string,
Expand All @@ -188,7 +184,13 @@ export class RepositoryManager {
private sourceLinkTemplate: string,
private disableGit: boolean,
private logger: Logger,
) {}
) {
this.assumedRepo = new AssumedRepository(
this.basePath,
this.gitRevision,
this.sourceLinkTemplate,
);
}

/**
* Check whether the given file is placed inside a repository.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/models/reflections/parameter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type {
export class ParameterReflection extends Reflection {
readonly variant = "param";

override parent?: SignatureReflection;
declare parent?: SignatureReflection;

defaultValue?: string;

Expand Down
4 changes: 2 additions & 2 deletions src/lib/models/reflections/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ export class SignatureReflection extends Reflection {
super(name, kind, parent);
}

override kind!:
declare kind:
| ReflectionKind.SetSignature
| ReflectionKind.GetSignature
| ReflectionKind.IndexSignature
| ReflectionKind.CallSignature
| ReflectionKind.ConstructorSignature;

override parent!: DeclarationReflection;
declare parent: DeclarationReflection;

/**
* A list of all source files that contributed to this reflection.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/models/reflections/type-parameter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type VarianceModifier =
export class TypeParameterReflection extends Reflection {
readonly variant = "typeParam";

override parent?: DeclarationReflection | SignatureReflection;
declare parent?: DeclarationReflection | SignatureReflection;

type?: SomeType;

Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"module": "Node16",
"lib": ["es2021"],
"target": "es2021",
"lib": ["es2022"],
"target": "es2022",

// Add our `ts` internal types
"typeRoots": ["node_modules/@types", "src/lib/types"],
Expand Down

0 comments on commit 9220785

Please sign in to comment.