-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 GitHub Actions / Testing exports integrity
Check failure on line 184 in packages/plugins/typescript/nest/src/visitor.ts GitHub Actions / Validating dev-tests (cjs)
Check failure on line 184 in packages/plugins/typescript/nest/src/visitor.ts GitHub Actions / release / snapshot
Check failure on line 184 in packages/plugins/typescript/nest/src/visitor.ts GitHub Actions / Validating dev-tests (esm)
|
||
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 GitHub Actions / Testing exports integrity
Check failure on line 187 in packages/plugins/typescript/nest/src/visitor.ts GitHub Actions / Validating dev-tests (cjs)
Check failure on line 187 in packages/plugins/typescript/nest/src/visitor.ts GitHub Actions / release / snapshot
Check failure on line 187 in packages/plugins/typescript/nest/src/visitor.ts GitHub Actions / Validating dev-tests (esm)
|
||
declarationBlock = this.getObjectTypeDeclarationBlock(node, originalNode); | ||
|
||
// Add decorator | ||
|
@@ -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 GitHub Actions / Testing exports integrity
Check failure on line 225 in packages/plugins/typescript/nest/src/visitor.ts GitHub Actions / Validating dev-tests (cjs)
Check failure on line 225 in packages/plugins/typescript/nest/src/visitor.ts GitHub Actions / release / snapshot
Check failure on line 225 in packages/plugins/typescript/nest/src/visitor.ts GitHub Actions / Validating dev-tests (esm)
|
||
getArgumentsObjectDeclarationBlock( | ||
node: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode, | ||
name: string, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 GitHub Actions / Testing exports integrity
Check failure on line 231 in packages/plugins/typescript/type-graphql/src/visitor.ts GitHub Actions / Validating dev-tests (cjs)
Check failure on line 231 in packages/plugins/typescript/type-graphql/src/visitor.ts GitHub Actions / release / snapshot
Check failure on line 231 in packages/plugins/typescript/type-graphql/src/visitor.ts GitHub Actions / Validating dev-tests (esm)
|
||
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 GitHub Actions / Testing exports integrity
Check failure on line 234 in packages/plugins/typescript/type-graphql/src/visitor.ts GitHub Actions / Validating dev-tests (cjs)
Check failure on line 234 in packages/plugins/typescript/type-graphql/src/visitor.ts GitHub Actions / release / snapshot
Check failure on line 234 in packages/plugins/typescript/type-graphql/src/visitor.ts GitHub Actions / Validating dev-tests (esm)
|
||
declarationBlock = this.getObjectTypeDeclarationBlock(node, originalNode); | ||
|
||
// Add type-graphql ObjectType decorator | ||
|
@@ -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 GitHub Actions / Testing exports integrity
Check failure on line 273 in packages/plugins/typescript/type-graphql/src/visitor.ts GitHub Actions / Validating dev-tests (cjs)
Check failure on line 273 in packages/plugins/typescript/type-graphql/src/visitor.ts GitHub Actions / release / snapshot
Check failure on line 273 in packages/plugins/typescript/type-graphql/src/visitor.ts GitHub Actions / Validating dev-tests (esm)
|
||
getArgumentsObjectDeclarationBlock( | ||
node: InterfaceTypeDefinitionNode | ObjectTypeDefinitionNode, | ||
name: string, | ||
|