@definitelytyped/dts-critic 0.0.95-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +88 -0
- package/develop.ts +446 -0
- package/dist/develop.d.ts +1 -0
- package/dist/develop.js +356 -0
- package/dist/develop.js.map +1 -0
- package/dist/dt.d.ts +1 -0
- package/dist/dt.js +79 -0
- package/dist/dt.js.map +1 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +852 -0
- package/dist/index.js.map +1 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +196 -0
- package/dist/index.test.js.map +1 -0
- package/dist/jest.config.d.ts +2 -0
- package/dist/jest.config.js +11 -0
- package/dist/jest.config.js.map +1 -0
- package/dt.ts +76 -0
- package/index.test.ts +278 -0
- package/index.ts +1038 -0
- package/jest.config.js +9 -0
- package/package.json +60 -0
- package/testsource/dts-critic.d.ts +8 -0
- package/testsource/dts-critic.js +1 -0
- package/testsource/missingDefault.d.ts +1 -0
- package/testsource/missingDefault.js +1 -0
- package/testsource/missingDtsProperty.d.ts +3 -0
- package/testsource/missingDtsProperty.js +4 -0
- package/testsource/missingDtsSignature.d.ts +7 -0
- package/testsource/missingDtsSignature.js +3 -0
- package/testsource/missingExportEquals.d.ts +1 -0
- package/testsource/missingExportEquals.js +5 -0
- package/testsource/missingJsProperty.d.ts +2 -0
- package/testsource/missingJsProperty.js +5 -0
- package/testsource/missingJsSignatureExportEquals.d.ts +6 -0
- package/testsource/missingJsSignatureExportEquals.js +3 -0
- package/testsource/missingJsSignatureNoExportEquals.d.ts +1 -0
- package/testsource/missingJsSignatureNoExportEquals.js +1 -0
- package/testsource/noErrors.d.ts +2 -0
- package/testsource/noErrors.js +2 -0
- package/testsource/parseltongue.d.ts +0 -0
- package/testsource/tslib.d.ts +4 -0
- package/testsource/typescript.d.ts +4 -0
- package/testsource/webpackPropertyNames.d.ts +1 -0
- package/testsource/webpackPropertyNames.js +12 -0
- package/tsconfig.json +20 -0
package/jest.config.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@definitelytyped/dts-critic",
|
|
3
|
+
"version": "0.0.95-next.1",
|
|
4
|
+
"author": "Nathan Shively-Sanders",
|
|
5
|
+
"description": "Checks a new .d.ts against the Javascript source and tells you what problems it has",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@definitelytyped/header-parser": "latest",
|
|
11
|
+
"command-exists": "^1.2.8",
|
|
12
|
+
"rimraf": "^3.0.2",
|
|
13
|
+
"semver": "^6.2.0",
|
|
14
|
+
"tmp": "^0.2.1",
|
|
15
|
+
"yargs": "^15.3.1"
|
|
16
|
+
},
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"typescript": "*"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/command-exists": "^1.2.0",
|
|
22
|
+
"@types/jest": "^24.0.0",
|
|
23
|
+
"@types/node": "~10.17.0",
|
|
24
|
+
"@types/rimraf": "^3.0.0",
|
|
25
|
+
"@types/semver": "^6.0.1",
|
|
26
|
+
"@types/strip-json-comments": "0.0.30",
|
|
27
|
+
"@types/tmp": "^0.2.0",
|
|
28
|
+
"@types/yargs": "^12.0.8",
|
|
29
|
+
"strip-json-comments": "^2.0.1",
|
|
30
|
+
"typescript": "*"
|
|
31
|
+
},
|
|
32
|
+
"main": "dist/index.js",
|
|
33
|
+
"types": "dist/index.d.ts",
|
|
34
|
+
"scripts": {
|
|
35
|
+
"test": "npm run build && jest",
|
|
36
|
+
"build": "tsc",
|
|
37
|
+
"dt": "node dist/dt.js",
|
|
38
|
+
"prepublishOnly": "npm run build && npm run test"
|
|
39
|
+
},
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "git+https://github.com/microsoft/DefinitelyTyped-tools.git"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"definitely",
|
|
46
|
+
"typed",
|
|
47
|
+
"refresh",
|
|
48
|
+
"npm",
|
|
49
|
+
"tag"
|
|
50
|
+
],
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/microsoft/DefinitelyTyped-tools/issues"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools#readme",
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=10.17.0"
|
|
58
|
+
},
|
|
59
|
+
"gitHead": "dc40b825ec231899cb63a5b007da08c463f2ee7d"
|
|
60
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Type definitions for package dts-critic 2.0
|
|
2
|
+
// Project: https://github.com/microsoft/TypeScript
|
|
3
|
+
// Definitions by: TypeScript Bot <https://github.com/typescript-bot>
|
|
4
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
|
+
|
|
6
|
+
declare function _default(): void;
|
|
7
|
+
|
|
8
|
+
export = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = function() {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = function() {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function foo(a: number): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = () => {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var normal: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var $export = {};
|
|
2
|
+
// type bitmap
|
|
3
|
+
$export.F = 1; // forced
|
|
4
|
+
$export.G = 2; // global
|
|
5
|
+
$export.S = 4; // static
|
|
6
|
+
$export.P = 8; // proto
|
|
7
|
+
$export.B = 16; // bind
|
|
8
|
+
$export.W = 32; // wrap
|
|
9
|
+
$export.U = 64; // safe
|
|
10
|
+
$export.R = 128; // real proto method for `library`
|
|
11
|
+
$export.normal = "hi";
|
|
12
|
+
module.exports = $export;
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": true,
|
|
4
|
+
"checkJs": true,
|
|
5
|
+
"target": "es2019",
|
|
6
|
+
"module": "commonjs",
|
|
7
|
+
"resolveJsonModule": true,
|
|
8
|
+
"strict": true,
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"outDir": "dist",
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"esModuleInterop": true,
|
|
13
|
+
"noImplicitReturns": true,
|
|
14
|
+
},
|
|
15
|
+
"exclude": [
|
|
16
|
+
"dist/*",
|
|
17
|
+
"sources/*",
|
|
18
|
+
"testsource/*",
|
|
19
|
+
]
|
|
20
|
+
}
|