Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.

Commit

Permalink
fix(profile.decorator.ts): fix profile decorator and typings issue
Browse files Browse the repository at this point in the history
fix #121
  • Loading branch information
nartc committed Mar 27, 2020
1 parent 38684b8 commit 5777e7a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 26 deletions.
37 changes: 22 additions & 15 deletions package-lock.json

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

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,20 @@
"devDependencies": {
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4",
"@nestjs/common": "7.0.5",
"@nestjs/core": "7.0.5",
"@nestjs/testing": "7.0.5",
"@nestjs/common": "7.0.6",
"@nestjs/core": "7.0.6",
"@nestjs/testing": "7.0.6",
"@types/jest": "25.1.4",
"commitizen": "4.0.3",
"coveralls": "3.0.11",
"cz-conventional-changelog": "3.1.0",
"husky": "4.2.3",
"lint-staged": "10.0.9",
"prettier": "2.0.1",
"prettier": "2.0.2",
"reflect-metadata": "0.1.13",
"semantic-release": "17.0.4",
"shelljs": "0.8.3",
"ts-node": "8.8.0",
"ts-node": "8.8.1",
"tsdx": "0.13.0",
"tslib": "1.11.1",
"typedoc": "0.17.3",
Expand All @@ -107,7 +107,7 @@
"@nartc/automapper": "5.0.13"
},
"peerDependencies": {
"@nestjs/common": "^6.11.6",
"@nestjs/common": "^7.0.6",
"reflect-metadata": "^0.1.13"
}
}
8 changes: 4 additions & 4 deletions src/utils/profileMap.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MappingProfile } from '@nartc/automapper';
import { Constructible, MappingProfile } from '@nartc/automapper';

export const PROFILE_MAP = 'nestjs__PROFILE_MAP';
export const ProfileMap: Map<
string,
new (...args: any) => MappingProfile
> = new Map<string, { new (...args: any): MappingProfile }>();
Constructible<MappingProfile>,
Constructible<MappingProfile>
> = new Map<Constructible<MappingProfile>, Constructible<MappingProfile>>();
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"importHelpers": true,
"declaration": true,
"sourceMap": true,
"rootDir": "./",
"rootDir": "./src",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down

0 comments on commit 5777e7a

Please sign in to comment.