@deessejs/type-testing 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.
Files changed (116) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +1 -1
  3. package/.eslintrc.json +0 -7
  4. package/.turbo/turbo-lint.log +0 -24
  5. package/.turbo/turbo-test.log +0 -23
  6. package/.turbo/turbo-typecheck.log +0 -4
  7. package/coverage/base.css +0 -224
  8. package/coverage/block-navigation.js +0 -87
  9. package/coverage/coverage-final.json +0 -15
  10. package/coverage/favicon.png +0 -0
  11. package/coverage/index.html +0 -146
  12. package/coverage/prettify.css +0 -1
  13. package/coverage/prettify.js +0 -2
  14. package/coverage/sort-arrow-sprite.png +0 -0
  15. package/coverage/sorter.js +0 -210
  16. package/coverage/src/api/assert.ts.html +0 -229
  17. package/coverage/src/api/check.ts.html +0 -586
  18. package/coverage/src/api/expect.ts.html +0 -220
  19. package/coverage/src/api/index.html +0 -161
  20. package/coverage/src/api/index.ts.html +0 -106
  21. package/coverage/src/index.html +0 -131
  22. package/coverage/src/index.ts.html +0 -127
  23. package/coverage/src/types/equality.ts.html +0 -190
  24. package/coverage/src/types/function.ts.html +0 -139
  25. package/coverage/src/types/index.html +0 -221
  26. package/coverage/src/types/index.ts.html +0 -121
  27. package/coverage/src/types/inhabitation.ts.html +0 -160
  28. package/coverage/src/types/length.ts.html +0 -109
  29. package/coverage/src/types/property.ts.html +0 -124
  30. package/coverage/src/types/special.ts.html +0 -274
  31. package/coverage/src/types/union.ts.html +0 -193
  32. package/coverage/src/utils.ts.html +0 -136
  33. package/dist/api/assert.d.ts +0 -43
  34. package/dist/api/assert.d.ts.map +0 -1
  35. package/dist/api/assert.js +0 -7
  36. package/dist/api/assert.js.map +0 -1
  37. package/dist/api/check.d.ts +0 -138
  38. package/dist/api/check.d.ts.map +0 -1
  39. package/dist/api/check.js +0 -17
  40. package/dist/api/check.js.map +0 -1
  41. package/dist/api/expect.d.ts +0 -35
  42. package/dist/api/expect.d.ts.map +0 -1
  43. package/dist/api/expect.js +0 -21
  44. package/dist/api/expect.js.map +0 -1
  45. package/dist/api/index.d.ts +0 -7
  46. package/dist/api/index.d.ts.map +0 -1
  47. package/dist/api/index.js +0 -7
  48. package/dist/api/index.js.map +0 -1
  49. package/dist/index.d.ts +0 -9
  50. package/dist/index.d.ts.map +0 -1
  51. package/dist/index.js +0 -12
  52. package/dist/index.js.map +0 -1
  53. package/dist/index.test.d.ts +0 -8
  54. package/dist/index.test.d.ts.map +0 -1
  55. package/dist/index.test.js +0 -264
  56. package/dist/index.test.js.map +0 -1
  57. package/dist/types/equality.d.ts +0 -30
  58. package/dist/types/equality.d.ts.map +0 -1
  59. package/dist/types/equality.js +0 -5
  60. package/dist/types/equality.js.map +0 -1
  61. package/dist/types/function.d.ts +0 -16
  62. package/dist/types/function.d.ts.map +0 -1
  63. package/dist/types/function.js +0 -5
  64. package/dist/types/function.js.map +0 -1
  65. package/dist/types/index.d.ts +0 -11
  66. package/dist/types/index.d.ts.map +0 -1
  67. package/dist/types/index.js +0 -12
  68. package/dist/types/index.js.map +0 -1
  69. package/dist/types/inhabitation.d.ts +0 -24
  70. package/dist/types/inhabitation.d.ts.map +0 -1
  71. package/dist/types/inhabitation.js +0 -5
  72. package/dist/types/inhabitation.js.map +0 -1
  73. package/dist/types/length.d.ts +0 -8
  74. package/dist/types/length.d.ts.map +0 -1
  75. package/dist/types/length.js +0 -5
  76. package/dist/types/length.js.map +0 -1
  77. package/dist/types/property.d.ts +0 -12
  78. package/dist/types/property.d.ts.map +0 -1
  79. package/dist/types/property.js +0 -5
  80. package/dist/types/property.js.map +0 -1
  81. package/dist/types/special.d.ts +0 -55
  82. package/dist/types/special.d.ts.map +0 -1
  83. package/dist/types/special.js +0 -5
  84. package/dist/types/special.js.map +0 -1
  85. package/dist/types/union.d.ts +0 -34
  86. package/dist/types/union.d.ts.map +0 -1
  87. package/dist/types/union.js +0 -5
  88. package/dist/types/union.js.map +0 -1
  89. package/dist/utils.d.ts +0 -14
  90. package/dist/utils.d.ts.map +0 -1
  91. package/dist/utils.js +0 -5
  92. package/dist/utils.js.map +0 -1
  93. package/src/api/assert.ts +0 -48
  94. package/src/api/check.ts +0 -167
  95. package/src/api/expect.ts +0 -45
  96. package/src/api/index.ts +0 -7
  97. package/src/index.ts +0 -14
  98. package/src/types/equality.ts +0 -35
  99. package/src/types/function.ts +0 -18
  100. package/src/types/index.ts +0 -12
  101. package/src/types/inhabitation.ts +0 -25
  102. package/src/types/length.ts +0 -8
  103. package/src/types/property.ts +0 -13
  104. package/src/types/special.ts +0 -63
  105. package/src/types/union.ts +0 -36
  106. package/src/utils.ts +0 -17
  107. package/tests/api.test.ts +0 -40
  108. package/tests/equality.test.ts +0 -57
  109. package/tests/function.test.ts +0 -32
  110. package/tests/inhabitation.test.ts +0 -40
  111. package/tests/length.test.ts +0 -18
  112. package/tests/property.test.ts +0 -35
  113. package/tests/special.test.ts +0 -132
  114. package/tests/union.test.ts +0 -58
  115. package/tests/utils.test.ts +0 -20
  116. package/tsconfig.tsbuildinfo +0 -1
@@ -1,264 +0,0 @@
1
- /**
2
- * Type-testing tests
3
- *
4
- * These tests verify that the type-checking utilities compile correctly.
5
- * If the code compiles, the types are correct.
6
- */
7
- /* eslint-disable @typescript-eslint/no-unused-vars */
8
- import { describe, it } from 'vitest';
9
- import {
10
- // Main exports
11
- check, assert, expect, expectFalse, } from './index';
12
- // These tests verify that the types compile correctly.
13
- // The actual type tests are done at compile time.
14
- describe('Equal', () => {
15
- it('should detect equal types', () => {
16
- const _test = true;
17
- });
18
- it('should detect unequal types', () => {
19
- const _test = false;
20
- });
21
- it('should handle any', () => {
22
- const _test = true;
23
- });
24
- it('should handle never', () => {
25
- const _test = true;
26
- });
27
- it('should handle object types', () => {
28
- const _test = true;
29
- });
30
- });
31
- describe('NotEqual', () => {
32
- it('should detect unequal types', () => {
33
- const _test = true;
34
- });
35
- it('should detect equal types', () => {
36
- const _test = false;
37
- });
38
- });
39
- describe('IsAny', () => {
40
- it('should detect any', () => {
41
- const _test = true;
42
- });
43
- it('should not detect string as any', () => {
44
- const _test = false;
45
- });
46
- it('should not detect never as any', () => {
47
- const _test = false;
48
- });
49
- it('should not detect unknown as any', () => {
50
- const _test = false;
51
- });
52
- });
53
- describe('IsNever', () => {
54
- it('should detect never', () => {
55
- const _test = true;
56
- });
57
- it('should not detect string as never', () => {
58
- const _test = false;
59
- });
60
- it('should not detect any as never', () => {
61
- const _test = false;
62
- });
63
- });
64
- describe('IsUnknown', () => {
65
- it('should detect unknown', () => {
66
- const _test = true;
67
- });
68
- it('should not detect string as unknown', () => {
69
- const _test = false;
70
- });
71
- });
72
- describe('IsVoid', () => {
73
- it('should detect void', () => {
74
- const _test = true;
75
- });
76
- it('should not detect string as void', () => {
77
- const _test = false;
78
- });
79
- });
80
- describe('IsUndefined', () => {
81
- it('should detect undefined', () => {
82
- const _test = true;
83
- });
84
- it('should not detect string as undefined', () => {
85
- const _test = false;
86
- });
87
- });
88
- describe('IsNull', () => {
89
- it('should detect null', () => {
90
- const _test = true;
91
- });
92
- it('should not detect string as null', () => {
93
- const _test = false;
94
- });
95
- });
96
- describe('IsNullable', () => {
97
- it('should detect nullable types with null', () => {
98
- const _test = true;
99
- });
100
- it('should detect nullable types with undefined', () => {
101
- const _test = true;
102
- });
103
- it('should detect fully nullable', () => {
104
- const _test = true;
105
- });
106
- it('should not detect non-nullable', () => {
107
- const _test = false;
108
- });
109
- it('should detect null as nullable', () => {
110
- const _test = true;
111
- });
112
- });
113
- describe('IsOptional', () => {
114
- it('should detect optional types', () => {
115
- const _test = true;
116
- });
117
- it('should detect required types as not optional', () => {
118
- const _test = false;
119
- });
120
- });
121
- describe('IsUnion', () => {
122
- it('should detect unions', () => {
123
- const _test = true;
124
- });
125
- it('should detect union with never', () => {
126
- const _test = false;
127
- });
128
- it('should not detect single type as union', () => {
129
- const _test = false;
130
- });
131
- it('should not detect primitives as union', () => {
132
- const _test = false;
133
- });
134
- });
135
- describe('IsTuple', () => {
136
- it('should detect tuples', () => {
137
- const _test = true;
138
- });
139
- it('should detect empty tuple', () => {
140
- const _test = true;
141
- });
142
- it('should not detect arrays as tuples', () => {
143
- const _test = false;
144
- });
145
- });
146
- describe('IsArray', () => {
147
- it('should detect arrays', () => {
148
- const _test = true;
149
- });
150
- it('should not detect tuples as arrays', () => {
151
- const _test = false;
152
- });
153
- });
154
- describe('IsInhabited', () => {
155
- it('should detect inhabited types', () => {
156
- const _test = true;
157
- });
158
- it('should detect object types as inhabited', () => {
159
- const _test = true;
160
- });
161
- it('should not detect never as inhabited', () => {
162
- const _test = false;
163
- });
164
- });
165
- describe('IsUninhabited', () => {
166
- it('should detect uninhabited types', () => {
167
- const _test = true;
168
- });
169
- it('should not detect string as uninhabited', () => {
170
- const _test = false;
171
- });
172
- it('should not detect any as uninhabited', () => {
173
- const _test = false;
174
- });
175
- });
176
- describe('HasProperty', () => {
177
- it('should detect existing property', () => {
178
- const _test = true;
179
- });
180
- it('should detect multiple properties', () => {
181
- const _test = true;
182
- });
183
- it('should not detect missing property', () => {
184
- const _test = false;
185
- });
186
- it('should work with optional properties', () => {
187
- const _test = true;
188
- });
189
- });
190
- describe('PropertyType', () => {
191
- it('should get property type', () => {
192
- const _test = 'hello';
193
- });
194
- });
195
- describe('Parameters', () => {
196
- it('should get function parameters', () => {
197
- const _test = ['hello', 42];
198
- });
199
- });
200
- describe('ReturnType', () => {
201
- it('should get function return type', () => {
202
- const _test = 42;
203
- });
204
- });
205
- describe('Parameter', () => {
206
- it('should get parameter at index 0', () => {
207
- const _test = 'hello';
208
- });
209
- it('should get parameter at index 1', () => {
210
- const _test = 42;
211
- });
212
- });
213
- describe('Length', () => {
214
- it('should get array length', () => {
215
- const _test = 3;
216
- });
217
- it('should get empty array length', () => {
218
- const _test = 0;
219
- });
220
- });
221
- describe('check() API', () => {
222
- it('should create check interface', () => {
223
- const c = check();
224
- // Just verify it returns something (even undefined)
225
- void c;
226
- });
227
- });
228
- describe('assert() API', () => {
229
- it('should create assert interface', () => {
230
- const a = assert();
231
- void a;
232
- });
233
- });
234
- describe('expect() API', () => {
235
- it('should create expect interface', () => {
236
- const e = expect();
237
- void e;
238
- });
239
- });
240
- describe('SimpleEqual', () => {
241
- it('should detect equal types', () => {
242
- const _test = true;
243
- });
244
- it('should detect unequal types', () => {
245
- const _test = false;
246
- });
247
- });
248
- describe('ExpectTrue', () => {
249
- it('should pass for true', () => {
250
- const _test = true;
251
- });
252
- });
253
- describe('ExpectEqual', () => {
254
- it('should work with equal types', () => {
255
- const _test = {};
256
- });
257
- });
258
- describe('expectFalse', () => {
259
- it('should compile for false', () => {
260
- // If this compiles, expectFalse works
261
- expectFalse();
262
- });
263
- });
264
- //# sourceMappingURL=index.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,sDAAsD;AAEtD,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO;AACL,eAAe;AACf,KAAK,EACL,MAAM,EACN,MAAM,EACN,WAAW,GAuCZ,MAAM,SAAS,CAAA;AAEhB,uDAAuD;AACvD,kDAAkD;AAElD,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACrB,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QAGnC,MAAM,KAAK,GAAS,IAAI,CAAA;IAC1B,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;QAErC,MAAM,KAAK,GAAS,KAAK,CAAA;IAC3B,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAE3B,MAAM,KAAK,GAAS,IAAI,CAAA;IAC1B,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;QAE7B,MAAM,KAAK,GAAS,IAAI,CAA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QACxC,MAAM,CAAC,GAAG,MAAM,EAAkB,CAAA;QAClC,KAAK,CAAC,CAAA;IACR,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QAEnC,MAAM,KAAK,GAAS,IAAI,CAAA;IAC1B,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;QAErC,MAAM,KAAK,GAAS,KAAK,CAAA;IAC3B,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAE9B,MAAM,KAAK,GAAS,IAAI,CAAA;IAC1B,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QAEtC,MAAM,KAAK,GAAW,EAAU,CAAA;IAClC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAClC,sCAAsC;QACtC,WAAW,EAAS,CAAA;IACtB,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,30 +0,0 @@
1
- /**
2
- * Type equality utilities.
3
- */
4
- /**
5
- * Checks if two types are strictly equal.
6
- * Uses a technique that compares the structure while handling
7
- * special types like any, never, and unknown.
8
- *
9
- * @example
10
- * ```typescript
11
- * check<string>().equals<string>() // passes
12
- * check<string>().equals<number>() // fails at compile time
13
- * ```
14
- */
15
- export type Equal<T, U> = (<G>() => G extends T ? 1 : 2) extends (<G>() => G extends U ? 1 : 2) ? true : false;
16
- /**
17
- * Checks if two types are not equal.
18
- *
19
- * @example
20
- * ```typescript
21
- * check<string>().notEquals<number>() // passes
22
- * ```
23
- */
24
- export type NotEqual<T, U> = Equal<T, U> extends true ? false : true;
25
- /**
26
- * Simple equality check that works in more contexts.
27
- * Useful for simple type comparisons.
28
- */
29
- export type SimpleEqual<T, U> = [T, U] extends [U, T] ? true : false;
30
- //# sourceMappingURL=equality.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"equality.d.ts","sourceRoot":"","sources":["../../src/types/equality.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,IACpB,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GACjE,IAAI,GACJ,KAAK,CAAA;AAEX;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,IAAI,GAAG,KAAK,GAAG,IAAI,CAAA;AAEpE;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Type equality utilities.
3
- */
4
- export {};
5
- //# sourceMappingURL=equality.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"equality.js","sourceRoot":"","sources":["../../src/types/equality.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Function type utilities.
3
- */
4
- /**
5
- * Gets the parameters of a function type as a tuple.
6
- */
7
- export type Parameters<T extends (...args: any[]) => any> = T extends (...args: infer P) => any ? P : never;
8
- /**
9
- * Gets the return type of a function type.
10
- */
11
- export type ReturnType<T extends (...args: any[]) => any> = T extends (...args: any[]) => infer R ? R : never;
12
- /**
13
- * Gets the parameter type at a specific index.
14
- */
15
- export type Parameter<T extends (...args: any[]) => any, N extends number> = Parameters<T>[N];
16
- //# sourceMappingURL=function.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../src/types/function.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,KAAK,CAAA;AAE3G;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;AAE7G;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,CAAC,SAAS,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Function type utilities.
3
- */
4
- export {};
5
- //# sourceMappingURL=function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"function.js","sourceRoot":"","sources":["../../src/types/function.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Type testing utilities.
3
- */
4
- export * from './equality';
5
- export * from './special';
6
- export * from './union';
7
- export * from './inhabitation';
8
- export * from './property';
9
- export * from './function';
10
- export * from './length';
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Type testing utilities.
3
- */
4
- // Re-export all types
5
- export * from './equality';
6
- export * from './special';
7
- export * from './union';
8
- export * from './inhabitation';
9
- export * from './property';
10
- export * from './function';
11
- export * from './length';
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,sBAAsB;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Type inhabitation utilities.
3
- */
4
- /**
5
- * Checks if a type is inhabited (has at least one value).
6
- *
7
- * @example
8
- * ```typescript
9
- * check<string>().isInhabited() // passes
10
- * check<never>().isInhabited() // fails
11
- * ```
12
- */
13
- export type IsInhabited<T> = [T] extends [never] ? false : true;
14
- /**
15
- * Checks if a type is uninhabited (has no values).
16
- *
17
- * @example
18
- * ```typescript
19
- * check<never>().isUninhabited() // passes
20
- * check<string>().isUninhabited() // fails
21
- * ```
22
- */
23
- export type IsUninhabited<T> = [T] extends [never] ? true : false;
24
- //# sourceMappingURL=inhabitation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inhabitation.d.ts","sourceRoot":"","sources":["../../src/types/inhabitation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,CAAA;AAE/D;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Type inhabitation utilities.
3
- */
4
- export {};
5
- //# sourceMappingURL=inhabitation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inhabitation.js","sourceRoot":"","sources":["../../src/types/inhabitation.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Length utility.
3
- */
4
- /**
5
- * Gets the length of an array or tuple type.
6
- */
7
- export type Length<T extends readonly any[]> = T['length'];
8
- //# sourceMappingURL=length.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"length.d.ts","sourceRoot":"","sources":["../../src/types/length.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,SAAS,GAAG,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Length utility.
3
- */
4
- export {};
5
- //# sourceMappingURL=length.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"length.js","sourceRoot":"","sources":["../../src/types/length.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Property testing utilities.
3
- */
4
- /**
5
- * Checks if a type has a specific property.
6
- */
7
- export type HasProperty<T, K extends PropertyKey> = K extends keyof T ? true : false;
8
- /**
9
- * Gets the type of a specific property from a type.
10
- */
11
- export type PropertyType<T, K extends keyof T> = T[K];
12
- //# sourceMappingURL=property.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../src/types/property.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,WAAW,IAAI,CAAC,SAAS,MAAM,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA;AAEpF;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Property testing utilities.
3
- */
4
- export {};
5
- //# sourceMappingURL=property.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property.js","sourceRoot":"","sources":["../../src/types/property.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,55 +0,0 @@
1
- /**
2
- * Special type detection utilities.
3
- */
4
- import type { Equal } from './equality';
5
- /**
6
- * Checks if a type is `any`.
7
- * Uses the technique: 0 extends (1 & T) ? true : false
8
- *
9
- * @example
10
- * ```typescript
11
- * check<any>().isAny() // passes
12
- * check<string>().isAny() // fails
13
- * ```
14
- */
15
- export type IsAny<T> = 0 extends (1 & T) ? true : false;
16
- /**
17
- * Checks if a type is `never`.
18
- *
19
- * @example
20
- * ```typescript
21
- * check<never>().isNever() // passes
22
- * check<string>().isNever() // fails
23
- * ```
24
- */
25
- export type IsNever<T> = [T] extends [never] ? true : false;
26
- /**
27
- * Checks if a type is `unknown`.
28
- *
29
- * @example
30
- * ```typescript
31
- * check<unknown>().isUnknown() // passes
32
- * ```
33
- */
34
- export type IsUnknown<T> = [unknown] extends [T] ? ([T] extends [unknown] ? true : false) : false;
35
- /**
36
- * Checks if a type is `void`.
37
- */
38
- export type IsVoid<T> = Equal<T, void>;
39
- /**
40
- * Checks if a type is `undefined`.
41
- */
42
- export type IsUndefined<T> = Equal<T, undefined>;
43
- /**
44
- * Checks if a type is `null`.
45
- */
46
- export type IsNull<T> = Equal<T, null>;
47
- /**
48
- * Checks if a type is `null` or `undefined`.
49
- */
50
- export type IsNullable<T> = [null] extends [T] ? true : ([undefined] extends [T] ? true : false);
51
- /**
52
- * Checks if a type is optional (may be undefined).
53
- */
54
- export type IsOptional<T> = [undefined] extends [T] ? true : false;
55
- //# sourceMappingURL=special.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"special.d.ts","sourceRoot":"","sources":["../../src/types/special.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAEvC;;;;;;;;;GASG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA;AAEvD;;;;;;;;GAQG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA;AAE3D;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,CAAA;AAEjG;;GAEG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;AAEtC;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;AAEhD;;GAEG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;AAEtC;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC,CAAA;AAEhG;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Special type detection utilities.
3
- */
4
- export {};
5
- //# sourceMappingURL=special.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"special.js","sourceRoot":"","sources":["../../src/types/special.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,34 +0,0 @@
1
- /**
2
- * Union and tuple detection utilities.
3
- */
4
- /**
5
- * Checks if a type is a union.
6
- *
7
- * @example
8
- * ```typescript
9
- * check<'a' | 'b'>().isUnion() // passes
10
- * check<'a'>().isUnion() // fails
11
- * ```
12
- */
13
- export type IsUnion<T, U = T> = [U] extends [never] ? false : T extends U ? [Exclude<U, never>] extends [T] ? false : true : false;
14
- /**
15
- * Checks if a type is a tuple.
16
- *
17
- * @example
18
- * ```typescript
19
- * check<[string, number]>().isTuple() // passes
20
- * check<string[]>().isTuple() // fails
21
- * ```
22
- */
23
- export type IsTuple<T> = T extends readonly any[] ? (number extends T['length'] ? false : true) : false;
24
- /**
25
- * Checks if a type is an array.
26
- *
27
- * @example
28
- * ```typescript
29
- * check<string[]>().isArray() // passes
30
- * check<[string]>().isArray() // fails
31
- * ```
32
- */
33
- export type IsArray<T> = T extends readonly any[] ? (IsTuple<T> extends true ? false : true) : false;
34
- //# sourceMappingURL=union.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../src/types/union.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAA;AAElI;;;;;;;;GAQG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,EAAE,GAAG,CAAC,MAAM,SAAS,CAAC,CAAC,QAAQ,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,KAAK,CAAA;AAEvG;;;;;;;;GAQG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,KAAK,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Union and tuple detection utilities.
3
- */
4
- export {};
5
- //# sourceMappingURL=union.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"union.js","sourceRoot":"","sources":["../../src/types/union.ts"],"names":[],"mappings":"AAAA;;GAEG"}
package/dist/utils.d.ts DELETED
@@ -1,14 +0,0 @@
1
- /**
2
- * Additional utilities.
3
- */
4
- import type { Equal } from './types/equality';
5
- /**
6
- * Type that always resolves to true.
7
- * Useful for making compile-time assertions.
8
- */
9
- export type ExpectTrue<_T extends true> = true;
10
- /**
11
- * Type that validates equality and throws if not equal.
12
- */
13
- export type ExpectEqual<T, U> = Equal<T, U> extends true ? T : never;
14
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAE7C;;;GAGG;AAEH,MAAM,MAAM,UAAU,CAAC,EAAE,SAAS,IAAI,IAAI,IAAI,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,KAAK,CAAA"}
package/dist/utils.js DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Additional utilities.
3
- */
4
- export {};
5
- //# sourceMappingURL=utils.js.map
package/dist/utils.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;GAEG"}