316 Commits

Author SHA1 Message Date
Sindre Sorhus
9d628aa623 Add And type 2024-04-29 14:33:08 +07:00
Ethan Resnick
ef7b580ffd
Mark Opaque and UnwrapOpaque as deprecated (#867) 2024-04-29 14:06:55 +07:00
Blake Wilson
7096613740
TsConfigJson: Add preserve module type and ES2022 lib types (#874) 2024-04-29 14:06:10 +07:00
Sindre Sorhus
d639574de8 Add IsNull type 2024-04-24 14:06:40 +07:00
倚窗听雨丿醉无心
91a2b1e6b3
Fix: "Zero" is not exported (#870) 2024-04-24 11:31:48 +08:00
Haozheng Li
f5b09de767
Add IsInteger and IsFloat, fix Integer and Float handing with edge case (#857)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-04-22 15:22:35 +07:00
Trevor Florence
3f77d93592
Update single-key-object.d.ts to use direct import path (#861) 2024-04-12 19:59:14 +09:00
Pelle Wessman
2878773efd
ReadonlyDeep/WritableDeep: Fix TypeScript 5.4 compatibility (#839) 2024-04-03 02:18:04 +09:00
Haozheng Li
0fb2d62f7d
ConditionalKeys: fix compatibility with TypeScript 5.4 (#852) 2024-04-02 12:04:15 +02:00
ash
fa1c3f3cf4
Add SingleKeyObject and IfEmptyObject types (#849)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-03-31 14:57:55 +09:00
Max Isom
fa4099c643
Add DistributedPick type (#841)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-03-24 15:55:12 +09:00
Pelle Wessman
95ac6df9d6
Update xo (#838) 2024-03-21 01:55:37 +07:00
Haozheng Li
a186adb1e8
SetParameterType: Fix compatibility with TypeScript 5.4 (#836) 2024-03-20 15:07:03 +07:00
Max
d2d0d01882
ArraySlice: Support array spread (#832) 2024-03-19 15:18:47 +07:00
Henrique Inonhe
bc4957763a
Add DistributedOmit type (#820)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-03-18 21:31:08 +07:00
Haozheng Li
2bc451e612
SetParameterType: Fix compatibility with TypeScript 5.4 (#835)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-03-18 21:23:08 +07:00
Haozheng Li
4f14bff732
OmitDeep: Fix handling if path not matched (#834) 2024-03-17 01:01:06 +07:00
Max
6ce09f05c5
Add ArraySlice, StringSlice, IsNegative, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, Sum, Subtract types (#748)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-03-08 22:53:47 +07:00
Tommy
2061925e73
OmitDeep: Fix internally imported type (#824) 2024-03-05 13:12:18 +07:00
Haozheng Li
0e196aa3ce
Add ArraySplice and OmitDeep type (#816)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-03-04 14:09:00 +07:00
Ethan Resnick
3ec8dbad57
Tagged: Add metadata support (#723) 2024-03-04 13:13:36 +07:00
Clément Cloux
2f4b55afa1
PartialOnUndefinedDeep: Fix it incorrectly removing non-optional properties when the input type contains an index signature (#764)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-02-22 13:24:10 +07:00
Sébastien Mischler
5f6165af95
MergeDeep: Fix compatibility with TypeScript 5.4 (#807) 2024-01-30 19:00:54 +07:00
Haozheng Li
a54e313d61
Fix support for exactOptionalPropertyTypes: true tsconfig (#804) 2024-01-24 15:06:30 +07:00
Haozheng Li
4a386518ac
Get: Fix handling of readonly array (#799) 2024-01-22 03:26:32 +07:00
Haozheng Li
6f1db93163
SharedUnionFieldsDeep: Skip if input type is not a union type (#798) 2024-01-22 03:25:59 +07:00
Haozheng Li
eb96609c1b
DelimiterCasedPropertiesDeep: Don't recurse into intersection type that include primitive value (#789) 2024-01-04 19:47:29 +07:00
Haozheng Li
0aec24710d
Merge: Don't turn undefined into optional key (#787) 2024-01-02 21:36:24 +07:00
Haozheng Li
94bb3d3fd7
Add SharedUnionFieldsDeep type (#783)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-12-27 18:05:40 +01:00
Haozheng Li
a919f93384
ReadonlyDeep: Fix usage with properties defined with void (#782) 2023-12-07 13:01:00 +01:00
Haozheng Li
ebb7a59369
ConditionalPickDeep: Supports interface (#776) 2023-12-04 20:49:07 +01:00
Haozheng Li
609c0978e4
MergeDeep: Fix optional key when value type is any or never (#777) 2023-12-02 13:37:52 +01:00
Haozheng Li
6759853662
Paths: Ensure it doesn't recurse into Map or Set's prototype properties (#772) 2023-11-28 12:57:04 +01:00
Haozheng Li
7144aed513
Remove unused import (#770) 2023-11-24 17:21:23 +01:00
Haozheng Li
e26c779ef5
DelimiterCasedPropertiesDeep: Fix handing of string (#768) 2023-11-21 16:52:59 +07:00
Haozheng Li
855fb642f2
Join: Faster handing of readonly empty tuple (#765) 2023-11-20 18:28:13 +07:00
Haozheng Li
fe03e0a87a
Jsonify: Remove redundant conditions (#762) 2023-11-18 16:22:00 +07:00
Sindre Sorhus
f8019c2e44 Jsonify: Fix usage with readonly array
Fixes #758
2023-11-17 19:21:54 +07:00
Sindre Sorhus
1b25febc81 Revert "Add Element to type BuiltIns (#745)"
This reverts commit d42ea80c2616fff5c92fae6d2750043f1b10b88c.
2023-11-17 19:19:55 +07:00
Haozheng Li
1c65935ced
PickDeep: Support interface (#755) 2023-11-16 00:22:12 +07:00
Haozheng Li
972815c1d2
ObjectValue: Support any kind of number index (#753) 2023-11-15 19:05:44 +07:00
Oskar Löfgren
e58127a3bb
Add preserveConsecutiveUppercase to PascalCase and friends (#749) 2023-11-15 13:20:39 +07:00
Alexander J. Vincent
7294cf0e14
Class: Fix type inference (#701) 2023-11-13 15:20:54 +07:00
Haozheng Li
59411c85a0
DelimiterCasedPropertiesDeep: Improve array handling (#744) 2023-11-13 15:14:32 +07:00
Haozheng Li
8fa831e641
Paths: Support interface (#746) 2023-11-13 15:13:54 +07:00
Eran Hirsch
a0410150b6
Jsonifiable: Remove redundant import (#747) 2023-11-13 14:52:01 +07:00
Haozheng Li
d42ea80c26
Add Element to type BuiltIns (#745) 2023-11-12 01:19:07 +07:00
Haozheng Li
9f47b119c9
Revert "PartialDeep: Ensure it doesn't recurse into prototype properties" (#743) 2023-11-09 14:43:41 +07:00
Sindre Sorhus
f31a21ca5a Fix typos 2023-11-09 03:54:49 +07:00
Haozheng Li
c60caba970
Add PickDeep type (#737)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-11-09 03:37:06 +07:00