502 Commits

Author SHA1 Message Date
Yangshun Tay
bdb565877d
ExtractStrict: Fix typo in docs (#1288) 2025-10-28 16:25:56 +07:00
Som Shekhar Mukherjee
12ef5b20c5
ExcludeRestElement: Fix generic assignability with arrays (#1274) 2025-10-25 18:35:08 +07:00
Daniel Bayley
3b4ad2edc6
PackageJson: Add devEngines type (#1286) 2025-10-24 13:41:25 +07:00
benz
ad62d2cc8b
Or/And: Fix documentation errors and add link to Xor (#1261)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Som Shekhar Mukherjee <iamssmkhrj@gmail.com>
2025-10-20 13:12:46 +07:00
Som Shekhar Mukherjee
b2caa3f58a
GreaterThanOrEqual / LessThan: Fix behavior with operands like N and N | N + >0 (#1280) 2025-10-19 23:16:47 +07:00
Som Shekhar Mukherjee
5612f64822
IfNotAnyOrNever: Add note regarding tail recursion (#1276) 2025-10-18 13:08:59 +07:00
Sindre Sorhus
608c711480
Use proper @see syntax for linking types (#1273) 2025-10-14 18:58:29 +09:00
Sindre Sorhus
2afaa40531
Add ArrayElement type (#1270)
Co-authored-by: Som Shekhar Mukherjee <49264891+som-sm@users.noreply.github.com>
2025-10-14 15:54:15 +09:00
Som Shekhar Mukherjee
18c67e1f99
If: Add note regarding tail recursion in documentation (#1269) 2025-10-13 20:46:27 +09:00
Sindre Sorhus
7e7b5f7010 Improve some descriptions 2025-10-13 15:26:21 +09:00
benz
34b8fadfa3
Add SplitOnRestElement, ExtractRestElement, ExcludeRestElement types (#1166)
Co-authored-by: Som Shekhar Mukherjee <49264891+som-sm@users.noreply.github.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2025-10-11 13:43:16 +09:00
Hiroki Osame
72f491faf2
TsConfigJson: Add missing lib enum values (#1263) 2025-10-09 02:38:05 +09:00
Hiroki Osame
7d011ce3a0
TsConfigJson: Add rewriteRelativeImportExtensions (#1262) 2025-10-09 02:37:33 +09:00
benz
ad04bc512e
Add Xor type (#1254)
Co-authored-by: Som Shekhar Mukherjee <49264891+som-sm@users.noreply.github.com>
2025-10-09 02:36:41 +09:00
Som Shekhar Mukherjee
140b7386c9
UnionToIntersection: Fix incorrect test case (#1260) 2025-10-06 19:28:49 +09:00
Som Shekhar Mukherjee
3bd9de60d5
PartialDeep: Fix behavior with functions containing multiple call signatures (#1259) 2025-10-02 12:38:46 +09:00
Som Shekhar Mukherjee
590efae822
JsonObject: Simplify implementation (#1258) 2025-10-01 18:24:41 +09:00
Som Shekhar Mukherjee
af4bebce3b
ReadonlyTuple: Deprecate in favor of TupleOf (#1256) 2025-10-01 03:37:05 +09:00
猫田
785549f364
IsEqual: Fix behaviour when instantiated with never and unknown (#1251) 2025-09-29 05:55:07 +09:00
Som Shekhar Mukherjee
ee29ef7b9d
FixedLengthArray: Fix element type (#1246) 2025-09-28 04:24:43 +09:00
Som Shekhar Mukherjee
f999a2c8cb
TupleOf: Add example in docs (#1250) 2025-09-27 19:47:35 +09:00
Som Shekhar Mukherjee
7fb2f75f3e
Add TupleOf type (#1247) 2025-09-26 15:46:43 +09:00
Sindre Sorhus
3ac9f35397
Add ESLint rule to ensure all source files have empty exports (#1244) 2025-09-25 22:07:24 +09:00
Jake Boone
d641eae000
Export *Options types from source files (#1242) 2025-09-25 17:46:52 +09:00
Sindre Sorhus
95c0cb5c52
Add lint rule to catch cases of missing exports in index.d.ts (#1238) 2025-09-21 09:40:03 +09:00
猫田
5af60a1330
is-equal: Fix handling with intersecting wrapped types (#1231)
Co-authored-by: Som Shekhar Mukherjee <iamssmkhrj@gmail.com>
2025-09-20 15:24:49 +09:00
Sindre Sorhus
f7bc576059 Add IsUndefined type
Fixes #1212
2025-09-13 16:37:44 +07:00
Sindre Sorhus
5f830b58c3 Minor tweaks 2025-09-13 16:05:22 +07:00
blaiseludvig
e790c3f166
TaggedUnion: Fix incorrect usage example (#1211) (#1221) 2025-09-04 17:35:52 +07:00
Som Shekhar Mukherjee
bfcdbc43f9
RequiredDeep: Fix behaviour with undefined (#1218) 2025-08-30 14:26:12 +07:00
benz
93728b5a8c
Add IsOptionalKeyOf, IsReadonlyKeyOf, IsRequiredKeyOf, and IsWritableKeyOf types (#1189) 2025-08-25 02:02:04 +07:00
benz
d52d5e7c5f
Refactor IsNumericLike and fix UnionMin, UnionMax types (#1192) 2025-08-25 00:07:29 +07:00
Gerkin
642bb133d0
Jsonify: Handle unknown as JsonValue (#1206) 2025-08-24 23:33:59 +07:00
ntnyq
d2bda94747
TsConfigJson: Add TypeScript 5.9 fields (#1210) 2025-08-01 13:08:22 +02:00
Jean Claveau
853b881f99
Split: Fix behavior with template strings ending with interpolated types (#1204) 2025-07-27 01:56:41 +02:00
Som Shekhar Mukherjee
4d7cc50fbe
ConditionalKeys: Fix behavior with arrays and unions (#1198) 2025-06-20 20:05:39 +02:00
Som Shekhar Mukherjee
18a1c0438b
Add RemovePrefix type (#1194) 2025-06-18 01:20:29 +02:00
Som Shekhar Mukherjee
9926e5dba4
Paths: Fix behavior with index signatures (#1193) 2025-06-17 21:53:27 +02:00
Park, Jinyong
5067e25fd5
Add IsOptional and IsNullable types (#1180)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2025-06-14 15:47:27 +02:00
Som Shekhar Mukherjee
c459b77d14
IsLiteral: Update example in JSDoc (#1188) 2025-06-14 15:11:20 +02:00
Allen Hernandez
5dbd7aed6a
Fix remaining broken links (#1187) 2025-06-12 16:08:48 +02:00
Allen Hernandez
f03d4608e1
Fix AbstractClass link to TS docs (#1184) 2025-06-11 14:12:51 +02:00
Som Shekhar Mukherjee
e492c9c035
StringKeyOf: Rename to KeyAsString (#1182) 2025-06-10 19:29:08 +02:00
Som Shekhar Mukherjee
6d38d725f7
ArrayTail: Fix incorrect JSDoc example (#1179) 2025-06-09 16:58:37 +02:00
Som Shekhar Mukherjee
f3aabd8a5d
ArrayTail: Fix behaviour with non-tuple arrays (#1175) 2025-06-09 01:21:49 +02:00
Som Shekhar Mukherjee
b34b1d865b
ArrayTail: Enable preserveReadonly option by default and remove the option (#1173) 2025-06-08 13:06:21 +02:00
Som Shekhar Mukherjee
57fef122e0
Add custom lint rule to ensure import paths end with .d.ts extension (#1168) 2025-06-06 13:55:44 +02:00
benz
d71242aee4
Add ExtendsStrict type (#1165)
Co-authored-by: Som Shekhar Mukherjee <iamssmkhrj@gmail.com>
2025-06-05 19:50:59 +03:00
Som Shekhar Mukherjee
c8c6d5569f
Add AllExtend type (#1164) 2025-06-05 12:56:09 +03:00
Som Shekhar Mukherjee
a891143da6
Every: Fix behavior when the target type is never (#1163) 2025-06-04 04:01:33 +03:00