@deessejs/type-testing 0.1.5 → 0.2.0
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/CHANGELOG.md +7 -1
- package/README.md +40 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime/comparison.d.ts +122 -0
- package/dist/runtime/comparison.d.ts.map +1 -0
- package/dist/runtime/comparison.js +180 -0
- package/dist/runtime/comparison.js.map +1 -0
- package/dist/runtime/index.d.ts +5 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +5 -0
- package/dist/runtime/index.js.map +1 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# @deessejs/type-testing
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add runtime type checking utilities with boolean type guards
|
|
8
|
+
|
|
3
9
|
## 0.1.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
- Fix
|
|
13
|
+
- Fix .npmignore to include dist folder in published package
|
|
8
14
|
|
|
9
15
|
## 0.1.1
|
|
10
16
|
|
package/README.md
CHANGED
|
@@ -164,6 +164,46 @@ Length<['a', 'b', 'c']> // 3
|
|
|
164
164
|
Length<[]> // 0
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
+
## Runtime Type Checking
|
|
168
|
+
|
|
169
|
+
The library also provides runtime type checking utilities:
|
|
170
|
+
|
|
171
|
+
```typescript
|
|
172
|
+
import {
|
|
173
|
+
// Type check functions returning TypeCheckResult objects
|
|
174
|
+
isString,
|
|
175
|
+
isNumber,
|
|
176
|
+
isBoolean,
|
|
177
|
+
isObject,
|
|
178
|
+
isArray,
|
|
179
|
+
isNull,
|
|
180
|
+
isUndefined,
|
|
181
|
+
|
|
182
|
+
// Boolean type guards (for use in conditionals)
|
|
183
|
+
isStringGuard,
|
|
184
|
+
isNumberGuard,
|
|
185
|
+
isBooleanGuard,
|
|
186
|
+
isObjectGuard,
|
|
187
|
+
isArrayGuard,
|
|
188
|
+
isNullGuard,
|
|
189
|
+
isUndefinedGuard,
|
|
190
|
+
isSymbolGuard,
|
|
191
|
+
isBigIntGuard,
|
|
192
|
+
isFunctionGuard
|
|
193
|
+
} from '@deessejs/type-testing'
|
|
194
|
+
|
|
195
|
+
// TypeCheckResult objects
|
|
196
|
+
const stringResult = isString('hello')
|
|
197
|
+
stringResult.matches // true
|
|
198
|
+
stringResult.value // 'hello'
|
|
199
|
+
stringResult.typeName // 'string'
|
|
200
|
+
|
|
201
|
+
// Boolean type guards
|
|
202
|
+
if (isStringGuard(value)) {
|
|
203
|
+
// value is narrowed to string here
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
167
207
|
## Chainable API
|
|
168
208
|
|
|
169
209
|
### check() - Soft type checking
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,kBAAkB,CAAA;AAGhC,cAAc,gBAAgB,CAAA;AAG9B,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,kBAAkB,CAAA;AAGhC,cAAc,gBAAgB,CAAA;AAG9B,cAAc,YAAY,CAAA;AAG1B,cAAc,oBAAoB,CAAA"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,+BAA+B;AAC/B,cAAc,kBAAkB,CAAA;AAEhC,gBAAgB;AAChB,cAAc,gBAAgB,CAAA;AAE9B,sBAAsB;AACtB,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,+BAA+B;AAC/B,cAAc,kBAAkB,CAAA;AAEhC,gBAAgB;AAChB,cAAc,gBAAgB,CAAA;AAE9B,sBAAsB;AACtB,cAAc,YAAY,CAAA;AAE1B,8BAA8B;AAC9B,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime comparison utilities.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Result of checking if a value matches a type.
|
|
6
|
+
*/
|
|
7
|
+
export interface TypeCheckResult<T> {
|
|
8
|
+
matches: boolean;
|
|
9
|
+
value: T;
|
|
10
|
+
typeName: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Check if a value is a string.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
* const result = isString('hello')
|
|
18
|
+
* result.matches // true
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function isString(value: unknown): TypeCheckResult<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a value is a number.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* const result = isNumber(42)
|
|
28
|
+
* result.matches // true
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare function isNumber(value: unknown): TypeCheckResult<number>;
|
|
32
|
+
/**
|
|
33
|
+
* Check if a value is a boolean.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* const result = isBoolean(true)
|
|
38
|
+
* result.matches // true
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare function isBoolean(value: unknown): TypeCheckResult<boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* Check if a value is an object.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* const result = isObject({ a: 1 })
|
|
48
|
+
* result.matches // true
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function isObject(value: unknown): TypeCheckResult<object>;
|
|
52
|
+
/**
|
|
53
|
+
* Check if a value is an array.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```typescript
|
|
57
|
+
* const result = isArray([1, 2, 3])
|
|
58
|
+
* result.matches // true
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare function isArray(value: unknown): TypeCheckResult<unknown[]>;
|
|
62
|
+
/**
|
|
63
|
+
* Check if a value is null.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* const result = isNull(null)
|
|
68
|
+
* result.matches // true
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export declare function isNull(value: unknown): TypeCheckResult<null>;
|
|
72
|
+
/**
|
|
73
|
+
* Check if a value is undefined.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* const result = isUndefined(undefined)
|
|
78
|
+
* result.matches // true
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
export declare function isUndefined(value: unknown): TypeCheckResult<undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* Type guard that returns true if the value is a string.
|
|
84
|
+
*/
|
|
85
|
+
export declare function isStringGuard(value: unknown): value is string;
|
|
86
|
+
/**
|
|
87
|
+
* Type guard that returns true if the value is a number.
|
|
88
|
+
*/
|
|
89
|
+
export declare function isNumberGuard(value: unknown): value is number;
|
|
90
|
+
/**
|
|
91
|
+
* Type guard that returns true if the value is a boolean.
|
|
92
|
+
*/
|
|
93
|
+
export declare function isBooleanGuard(value: unknown): value is boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Type guard that returns true if the value is an object (not null, not array).
|
|
96
|
+
*/
|
|
97
|
+
export declare function isObjectGuard(value: unknown): value is object;
|
|
98
|
+
/**
|
|
99
|
+
* Type guard that returns true if the value is an array.
|
|
100
|
+
*/
|
|
101
|
+
export declare function isArrayGuard(value: unknown): value is unknown[];
|
|
102
|
+
/**
|
|
103
|
+
* Type guard that returns true if the value is null.
|
|
104
|
+
*/
|
|
105
|
+
export declare function isNullGuard(value: unknown): value is null;
|
|
106
|
+
/**
|
|
107
|
+
* Type guard that returns true if the value is undefined.
|
|
108
|
+
*/
|
|
109
|
+
export declare function isUndefinedGuard(value: unknown): value is undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Type guard that returns true if the value is a symbol.
|
|
112
|
+
*/
|
|
113
|
+
export declare function isSymbolGuard(value: unknown): value is symbol;
|
|
114
|
+
/**
|
|
115
|
+
* Type guard that returns true if the value is a bigint.
|
|
116
|
+
*/
|
|
117
|
+
export declare function isBigIntGuard(value: unknown): value is bigint;
|
|
118
|
+
/**
|
|
119
|
+
* Type guard that returns true if the value is a function.
|
|
120
|
+
*/
|
|
121
|
+
export declare function isFunctionGuard(value: unknown): value is Function;
|
|
122
|
+
//# sourceMappingURL=comparison.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparison.d.ts","sourceRoot":"","sources":["../../src/runtime/comparison.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,CAAC,CAAA;IACR,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,CAMhE;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EA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AAK,IAAI,MAAM,CAE7D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE7D;AAED;;GAEG;AAEH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAEjE"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime comparison utilities.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Check if a value is a string.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const result = isString('hello')
|
|
10
|
+
* result.matches // true
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export function isString(value) {
|
|
14
|
+
return {
|
|
15
|
+
matches: typeof value === 'string',
|
|
16
|
+
value: value,
|
|
17
|
+
typeName: typeof value,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Check if a value is a number.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* const result = isNumber(42)
|
|
26
|
+
* result.matches // true
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export function isNumber(value) {
|
|
30
|
+
return {
|
|
31
|
+
matches: typeof value === 'number',
|
|
32
|
+
value: value,
|
|
33
|
+
typeName: typeof value,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Check if a value is a boolean.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* const result = isBoolean(true)
|
|
42
|
+
* result.matches // true
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export function isBoolean(value) {
|
|
46
|
+
return {
|
|
47
|
+
matches: typeof value === 'boolean',
|
|
48
|
+
value: value,
|
|
49
|
+
typeName: typeof value,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a value is an object.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```typescript
|
|
57
|
+
* const result = isObject({ a: 1 })
|
|
58
|
+
* result.matches // true
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export function isObject(value) {
|
|
62
|
+
return {
|
|
63
|
+
matches: typeof value === 'object' && value !== null,
|
|
64
|
+
value: value,
|
|
65
|
+
typeName: typeof value,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a value is an array.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```typescript
|
|
73
|
+
* const result = isArray([1, 2, 3])
|
|
74
|
+
* result.matches // true
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export function isArray(value) {
|
|
78
|
+
return {
|
|
79
|
+
matches: Array.isArray(value),
|
|
80
|
+
value: value,
|
|
81
|
+
typeName: Array.isArray(value) ? 'array' : typeof value,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Check if a value is null.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```typescript
|
|
89
|
+
* const result = isNull(null)
|
|
90
|
+
* result.matches // true
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
export function isNull(value) {
|
|
94
|
+
return {
|
|
95
|
+
matches: value === null,
|
|
96
|
+
value: value,
|
|
97
|
+
typeName: value === null ? 'null' : typeof value,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Check if a value is undefined.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```typescript
|
|
105
|
+
* const result = isUndefined(undefined)
|
|
106
|
+
* result.matches // true
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
export function isUndefined(value) {
|
|
110
|
+
return {
|
|
111
|
+
matches: value === undefined,
|
|
112
|
+
value: value,
|
|
113
|
+
typeName: value === undefined ? 'undefined' : typeof value,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
// ============================================
|
|
117
|
+
// Simple boolean type guards
|
|
118
|
+
// ============================================
|
|
119
|
+
/**
|
|
120
|
+
* Type guard that returns true if the value is a string.
|
|
121
|
+
*/
|
|
122
|
+
export function isStringGuard(value) {
|
|
123
|
+
return typeof value === 'string';
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Type guard that returns true if the value is a number.
|
|
127
|
+
*/
|
|
128
|
+
export function isNumberGuard(value) {
|
|
129
|
+
return typeof value === 'number';
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Type guard that returns true if the value is a boolean.
|
|
133
|
+
*/
|
|
134
|
+
export function isBooleanGuard(value) {
|
|
135
|
+
return typeof value === 'boolean';
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Type guard that returns true if the value is an object (not null, not array).
|
|
139
|
+
*/
|
|
140
|
+
export function isObjectGuard(value) {
|
|
141
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Type guard that returns true if the value is an array.
|
|
145
|
+
*/
|
|
146
|
+
export function isArrayGuard(value) {
|
|
147
|
+
return Array.isArray(value);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Type guard that returns true if the value is null.
|
|
151
|
+
*/
|
|
152
|
+
export function isNullGuard(value) {
|
|
153
|
+
return value === null;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Type guard that returns true if the value is undefined.
|
|
157
|
+
*/
|
|
158
|
+
export function isUndefinedGuard(value) {
|
|
159
|
+
return value === undefined;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Type guard that returns true if the value is a symbol.
|
|
163
|
+
*/
|
|
164
|
+
export function isSymbolGuard(value) {
|
|
165
|
+
return typeof value === 'symbol';
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Type guard that returns true if the value is a bigint.
|
|
169
|
+
*/
|
|
170
|
+
export function isBigIntGuard(value) {
|
|
171
|
+
return typeof value === 'bigint';
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Type guard that returns true if the value is a function.
|
|
175
|
+
*/
|
|
176
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
177
|
+
export function isFunctionGuard(value) {
|
|
178
|
+
return typeof value === 'function';
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=comparison.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparison.js","sourceRoot":"","sources":["../../src/runtime/comparison.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH;;;;;;;;GAQG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO;QACL,OAAO,EAAE,OAAO,KAAK,KAAK,QAAQ;QAClC,KAAK,EAAE,KAAe;QACtB,QAAQ,EAAE,OAAO,KAAK;KACvB,CAAA;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO;QACL,OAAO,EAAE,OAAO,KAAK,KAAK,QAAQ;QAClC,KAAK,EAAE,KAAe;QACtB,QAAQ,EAAE,OAAO,KAAK;KACvB,CAAA;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,SAAS,CAAC,KAAc;IACtC,OAAO;QACL,OAAO,EAAE,OAAO,KAAK,KAAK,SAAS;QACnC,KAAK,EAAE,KAAgB;QACvB,QAAQ,EAAE,OAAO,KAAK;KACvB,CAAA;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO;QACL,OAAO,EAAE,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QACpD,KAAK,EAAE,KAAe;QACtB,QAAQ,EAAE,OAAO,KAAK;KACvB,CAAA;AAC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I,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AAC7E,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AAC7B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,OAAO,KAAK,KAAK,IAAI,CAAA;AACvB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,OAAO,KAAK,KAAK,SAAS,CAAA;AAC5B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAA;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAA;AAClC,CAAC;AAED;;GAEG;AACH,sEAAsE;AACtE,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,OAAO,KAAK,KAAK,UAAU,CAAA;AACpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,iBAAiB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deessejs/type-testing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"lint": "eslint src --ext .ts,.tsx",
|
|
17
17
|
"typecheck": "tsc --noEmit",
|
|
18
18
|
"test": "vitest run",
|
|
19
|
+
"test:coverage": "vitest run --coverage",
|
|
19
20
|
"test:watch": "vitest",
|
|
20
21
|
"clean": "rm -rf dist"
|
|
21
22
|
},
|