@esportsplus/typescript 0.4.5 → 0.4.7
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/build/index.d.ts +1 -0
- package/build/types.d.ts +7 -0
- package/package.json +2 -2
- package/tsconfig.base.json +31 -0
- package/tsconfig.json +1 -29
- package/tsconfig.package.json +1 -1
- package/tsconfig.project.json +1 -1
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
package/build/types.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Function = (...args: unknown[]) => Promise<unknown> | unknown;
|
|
2
|
+
type NeverAsync<T> = T extends Promise<unknown> ? never : T extends (...args: unknown[]) => unknown ? NeverAsync<ReturnType<T>> extends never ? never : T : T;
|
|
3
|
+
type NeverFunction<T> = T extends Promise<unknown> ? never : T extends (...args: unknown[]) => unknown ? never : T;
|
|
4
|
+
type Prettify<T> = {
|
|
5
|
+
[K in keyof T]: T[K];
|
|
6
|
+
} & {};
|
|
7
|
+
export { Function, NeverAsync, NeverFunction, Prettify };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "ICJR",
|
|
3
3
|
"dependencies": {
|
|
4
4
|
"tsc-alias": "^1.8.10",
|
|
5
|
-
"typescript": "^5.5.
|
|
5
|
+
"typescript": "^5.5.3"
|
|
6
6
|
},
|
|
7
7
|
"exports": {
|
|
8
8
|
"./package.json": "./package.json",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"prepublishOnly": "npm run build"
|
|
24
24
|
},
|
|
25
25
|
"types": "build/index.d.ts",
|
|
26
|
-
"version": "0.4.
|
|
26
|
+
"version": "0.4.7"
|
|
27
27
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"allowJs": true,
|
|
5
|
+
"allowSyntheticDefaultImports": true,
|
|
6
|
+
"baseUrl": "${configDir}",
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"noUnusedLocals": true,
|
|
13
|
+
"noUnusedParameters": true,
|
|
14
|
+
"outDir": "${configDir}/build",
|
|
15
|
+
"paths": {
|
|
16
|
+
"~/*": ["${configDir}/src/*"],
|
|
17
|
+
"~/storage/*": ["${configDir}/storage/*"]
|
|
18
|
+
},
|
|
19
|
+
"removeComments": true,
|
|
20
|
+
"resolveJsonModule": true,
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
"strict": true,
|
|
23
|
+
"target": "esnext"
|
|
24
|
+
},
|
|
25
|
+
"include": ["${configDir}/src"],
|
|
26
|
+
"ts-node": {
|
|
27
|
+
"compilerOptions": {
|
|
28
|
+
"module": "commonjs"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,31 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"allowJs": true,
|
|
5
|
-
"allowSyntheticDefaultImports": true,
|
|
6
|
-
"baseUrl": "${configDir}",
|
|
7
|
-
"declaration": false,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"noUnusedLocals": true,
|
|
13
|
-
"noUnusedParameters": true,
|
|
14
|
-
"outDir": "${configDir}/build",
|
|
15
|
-
"paths": {
|
|
16
|
-
"~/*": ["${configDir}/src/*"],
|
|
17
|
-
"~/storage/*": ["${configDir}/storage/*"]
|
|
18
|
-
},
|
|
19
|
-
"removeComments": true,
|
|
20
|
-
"resolveJsonModule": true,
|
|
21
|
-
"skipLibCheck": true,
|
|
22
|
-
"strict": true,
|
|
23
|
-
"target": "esnext"
|
|
24
|
-
},
|
|
25
|
-
"include": ["${configDir}/src"],
|
|
26
|
-
"ts-node": {
|
|
27
|
-
"compilerOptions": {
|
|
28
|
-
"module": "commonjs"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
2
|
+
"extends": "./tsconfig.package.json"
|
|
31
3
|
}
|
package/tsconfig.package.json
CHANGED
package/tsconfig.project.json
CHANGED