Skip to content

Commit

Permalink
Fix TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jan 3, 2025
1 parent 57f2870 commit 1ecebf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/plugins/typescript/nest/src/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ export class NestVisitor<

let declarationBlock: DeclarationBlock;
if (isGraphQLType) {
// @ts-expect-error - Types have separate declarations of a private property '_config'.

Check failure on line 184 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Testing exports integrity

Unused '@ts-expect-error' directive.

Check failure on line 184 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (cjs)

Unused '@ts-expect-error' directive.

Check failure on line 184 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / release / snapshot

Unused '@ts-expect-error' directive.

Check failure on line 184 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (esm)

Unused '@ts-expect-error' directive.
declarationBlock = this.typescriptVisitor.getObjectTypeDeclarationBlock(node, originalNode);
} else {
// @ts-expect-error - Types have separate declarations of a private property '_config'.

Check failure on line 187 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Testing exports integrity

Unused '@ts-expect-error' directive.

Check failure on line 187 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (cjs)

Unused '@ts-expect-error' directive.

Check failure on line 187 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / release / snapshot

Unused '@ts-expect-error' directive.

Check failure on line 187 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (esm)

Unused '@ts-expect-error' directive.
declarationBlock = this.getObjectTypeDeclarationBlock(node, originalNode);

// Add decorator
Expand Down Expand Up @@ -220,6 +222,7 @@ export class NestVisitor<
return declarationBlock.string;
}

// @ts-expect-error - Types have separate declarations of a private property '_config'.

Check failure on line 225 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Testing exports integrity

Unused '@ts-expect-error' directive.

Check failure on line 225 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (cjs)

Unused '@ts-expect-error' directive.

Check failure on line 225 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / release / snapshot

Unused '@ts-expect-error' directive.

Check failure on line 225 in packages/plugins/typescript/nest/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (esm)

Unused '@ts-expect-error' directive.
getArgumentsObjectDeclarationBlock(
node: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode,
name: string,
Expand Down
3 changes: 3 additions & 0 deletions packages/plugins/typescript/type-graphql/src/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,10 @@ export class TypeGraphQLVisitor<

let declarationBlock: DeclarationBlock;
if (isGraphQLType) {
// @ts-expect-error - Types have separate declarations of a private property '_config'.

Check failure on line 231 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Testing exports integrity

Unused '@ts-expect-error' directive.

Check failure on line 231 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (cjs)

Unused '@ts-expect-error' directive.

Check failure on line 231 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / release / snapshot

Unused '@ts-expect-error' directive.

Check failure on line 231 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (esm)

Unused '@ts-expect-error' directive.
declarationBlock = this.typescriptVisitor.getObjectTypeDeclarationBlock(node, originalNode);
} else {
// @ts-expect-error - Types have separate declarations of a private property '_config'.

Check failure on line 234 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Testing exports integrity

Unused '@ts-expect-error' directive.

Check failure on line 234 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (cjs)

Unused '@ts-expect-error' directive.

Check failure on line 234 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / release / snapshot

Unused '@ts-expect-error' directive.

Check failure on line 234 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (esm)

Unused '@ts-expect-error' directive.
declarationBlock = this.getObjectTypeDeclarationBlock(node, originalNode);

// Add type-graphql ObjectType decorator
Expand Down Expand Up @@ -268,6 +270,7 @@ export class TypeGraphQLVisitor<
return declarationBlock.string;
}

// @ts-expect-error - Types have separate declarations of a private property '_config'.

Check failure on line 273 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Testing exports integrity

Unused '@ts-expect-error' directive.

Check failure on line 273 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (cjs)

Unused '@ts-expect-error' directive.

Check failure on line 273 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / release / snapshot

Unused '@ts-expect-error' directive.

Check failure on line 273 in packages/plugins/typescript/type-graphql/src/visitor.ts

View workflow job for this annotation

GitHub Actions / Validating dev-tests (esm)

Unused '@ts-expect-error' directive.
getArgumentsObjectDeclarationBlock(
node: InterfaceTypeDefinitionNode | ObjectTypeDefinitionNode,
name: string,
Expand Down

0 comments on commit 1ecebf2

Please sign in to comment.