1
0
Fork 0
Browse Source

chore: configure type checks

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
main
André Jaenisch 11 months ago
parent
commit
010fc70f0b
Signed by: ryuno-ki
GPG Key ID: 5A668E771F1ED854
  1. 0
      index.d.ts
  2. 0
      index.test-d.ts
  3. 1180
      package-lock.json
  4. 12
      package.json
  5. 17
      tsconfig.json
  6. 1
      types/index.d.ts

0
index.d.ts vendored

0
index.test-d.ts

1180
package-lock.json generated

File diff suppressed because it is too large Load Diff

12
package.json

@ -8,9 +8,13 @@
"coverage": "nyc npm run test",
"lint": "npm run lint:js",
"lint:js": "eslint ./src",
"posttest": "npm run tsd",
"prepare": "husky install",
"pre-commit": "npm run lint && npm run test",
"test": "mocha"
"pre-commit": "npm run types && npm run lint && npm run test",
"test": "mocha",
"tsc": "tsc",
"tsd": "tsd",
"types": "tsc --noEmit false --emitDeclarationOnly true"
},
"repository": {
"type": "git",
@ -37,6 +41,8 @@
"mocha": "9.0.3",
"nyc": "15.1.0",
"standard": "16.0.3",
"tap": "15.0.9"
"tap": "15.0.9",
"tsd": "0.17.0",
"typescript": "4.3.5"
}
}

17
tsconfig.json

@ -0,0 +1,17 @@
{
"compilerOptions": {
"lib": ["es2021", "DOM"],
"moduleResolution": "node",
"module": "CommonJS",
"allowJs": true,
"checkJs": true,
"noEmit": true,
"resolveJsonModule": true,
"strict": true,
"skipLibCheck": true,
"declarationDir": "types",
"declaration": true
},
"include": ["./src/**/*.js", "index.d.ts"],
"exclude": ["node_modules"]
}

1
types/index.d.ts vendored

@ -0,0 +1 @@
export function app(): void;
Loading…
Cancel
Save