File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 7474 },
7575 "globals" : {
7676 "ts-jest" : {
77- "tsConfig" : " test/typescript/full/ tsconfig.json" ,
77+ "tsConfig" : " test/typescript/tsconfig.json" ,
7878 "diagnostics" : true
7979 }
8080 }
Original file line number Diff line number Diff line change 1- /// <reference path="../../../ index.d.ts" /> // here we make a reference to exists module definition
1+ /// <reference path="../../index.d.ts" /> // here we make a reference to exists module definition
22import ValidatorType from 'fastest-validator' ; // here we importing type definition of default export
33
4- const Validator : typeof ValidatorType = require ( '../../../ index' ) ; // here we importing real Validator Constructor
4+ const Validator : typeof ValidatorType = require ( '../../index' ) ; // here we importing real Validator Constructor
55
66describe ( 'Typescript Definitions' , ( ) => {
77 it ( 'should compile validator' , async ( ) => {
Original file line number Diff line number Diff line change 1616 "strictFunctionTypes" : false ,
1717 "preserveConstEnums" : true ,
1818 "suppressImplicitAnyIndexErrors" : true ,
19- "outDir" : " ./out" ,
2019 "baseUrl" : " ." ,
2120 "allowJs" : true
2221 },
You can’t perform that action at this time.
0 commit comments