@greenymcgee/utility-types 0.1.0 → 0.1.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/README.md +10 -4
- package/package.json +20 -2
- package/tsconfig.json +0 -16
package/README.md
CHANGED
|
@@ -4,20 +4,26 @@ These are a set of utility types that I use in my projects.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
### npm
|
|
8
|
+
|
|
7
9
|
```bash
|
|
8
|
-
# npm
|
|
9
10
|
npm install -D @greenymcgee/utility-types
|
|
11
|
+
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
### pnpm
|
|
14
|
+
|
|
15
|
+
```bash
|
|
12
16
|
pnpm add -D @greenymcgee/utility-types
|
|
13
17
|
```
|
|
14
18
|
|
|
15
19
|
## Usage
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
Add this to your project's `tsconfig.json` file.
|
|
18
22
|
|
|
19
23
|
```ts
|
|
20
|
-
|
|
24
|
+
"compilerOptions": {
|
|
25
|
+
"types": ["@greenymcgee/utility-types"]
|
|
26
|
+
}
|
|
21
27
|
```
|
|
22
28
|
|
|
23
29
|
## Types
|
package/package.json
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@greenymcgee/utility-types",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/greenymcgee/tacklebox.git",
|
|
7
|
+
"directory": "packages/utility-types"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/greenymcgee/tacklebox/tree/main/packages/utility-types",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/greenymcgee/tacklebox/issues"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"index.d.ts"
|
|
15
|
+
],
|
|
4
16
|
"type": "module",
|
|
5
|
-
"types": "./index.d.ts"
|
|
17
|
+
"types": "./index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./index.d.ts",
|
|
21
|
+
"import": "./index.d.ts"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
6
24
|
}
|
package/tsconfig.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
{
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "ES2022",
|
|
5
|
-
"allowJs": false,
|
|
6
|
-
"strict": true,
|
|
7
|
-
"noEmit": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"moduleResolution": "bundler",
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"isolatedModules": true,
|
|
12
|
-
"incremental": true,
|
|
13
|
-
},
|
|
14
|
-
"include": ["**/*.ts"],
|
|
15
|
-
"exclude": ["node_modules"]
|
|
16
|
-
}
|