@esportsplus/typescript 0.0.1 → 0.0.2
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/.gitattributes +2 -2
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types.d.ts +10 -0
- package/build/types.js +1 -0
- package/package.json +7 -1
- package/src/index.ts +1 -0
- package/src/types.ts +14 -0
- package/tsconfig.json +10 -0
package/.gitattributes
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# Auto detect text files and perform LF normalization
|
|
2
|
-
* text=auto
|
|
1
|
+
# Auto detect text files and perform LF normalization
|
|
2
|
+
* text=auto
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
package/build/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
package/build/types.d.ts
ADDED
package/build/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
"main": "build/index.js",
|
|
12
12
|
"name": "@esportsplus/typescript",
|
|
13
13
|
"private": false,
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc && tsc-alias",
|
|
16
|
+
"-": "-",
|
|
17
|
+
"prepare": "npm run build",
|
|
18
|
+
"prepublishOnly": "npm run build"
|
|
19
|
+
},
|
|
14
20
|
"types": "build/index.d.ts",
|
|
15
|
-
"version": "0.0.
|
|
21
|
+
"version": "0.0.2"
|
|
16
22
|
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type ExtractMethods<T> = {
|
|
2
|
+
[K in keyof T as T[K] extends Function ? K : never]: T[K]
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
type Mutable<T> = {
|
|
6
|
+
-readonly [P in keyof T]: T[P];
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
type Prettify<T> = {
|
|
10
|
+
[K in keyof T]: T[K];
|
|
11
|
+
} & {};
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
export { ExtractMethods, Mutable, Prettify };
|