Skip to content

Commit

Permalink
chore(): update typescript to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Nov 9, 2020
1 parent 0329848 commit 243b963
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/plugin/visitors/model-class.visitor.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { compact, flatten } from 'lodash';
import * as ts from 'typescript';
import { HideField } from '../../decorators';
import { PluginOptions } from '../merge-options';
import { METADATA_FACTORY_NAME } from '../plugin-constants';
import { getDescriptionOfNode } from '../utils/ast-utils';
import {
getDecoratorOrUndefinedByNames,
getTypeReferenceAsString,
hasPropertyKey,
replaceImportPath,
} from '../utils/plugin-utils';
import { PluginOptions } from '../merge-options';
import { getDescriptionOfNode } from '../utils/ast-utils';

const metadataHostMap = new Map();
const importsToAddPerFile = new Map<string, Set<string>>();
Expand Down Expand Up @@ -101,7 +101,7 @@ export class ModelClassVisitor {
undefined,
ts.createBlock([ts.createReturn(returnValue)], true),
);
(classMutableNode as ts.ClassDeclaration).members = ts.createNodeArray([
(classMutableNode as any).members = ts.createNodeArray([
...(classMutableNode as ts.ClassDeclaration).members,
method,
]);
Expand Down
20 changes: 17 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"ts-jest": "26.4.4",
"ts-morph": "8.0.0",
"ts-node": "9.0.0",
"typescript": "3.9.7"
"typescript": "^4.0.5"
},
"dependencies": {
"@graphql-tools/merge": "6.2.5",
Expand Down

0 comments on commit 243b963

Please sign in to comment.