328 Commits

Author SHA1 Message Date
Dmitry Firsov
476024da19
CamelCasedPropertiesDeep: Fix handling of non-recursive types inside target type (#890) 2024-06-26 14:40:37 +02:00
thecodewarrior
737550b787
Add StructuredCloneable type (#897) 2024-06-26 14:39:58 +02:00
Mateusz Kadlubowski
0e4675599d
IterableElement: Improve docs and add tests for using it with Set (#894)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-06-22 12:01:50 +02:00
Sindre Sorhus
e75dbe1fee IntRange: Document lack of support for negative numbers
Fixes #895
2024-06-20 17:06:23 +02:00
Grigoris Christainas
c570ec2c40
Schema: Fix handling of arrays (#887) 2024-06-15 22:33:03 +02:00
Haozheng Li
7d4e875b69
Paths: Prevent infinite recursion (#891) 2024-06-15 22:32:28 +02:00
Haozheng Li
a6ab051735
SimplifyDeep: Support array (#888) 2024-06-07 13:10:44 +02:00
CJ Quines
587380ce8e
IsLiteral: Return false for tagged types (#886) 2024-06-07 13:06:00 +02:00
Haozheng Li
3a04fcf2ad
Add SimplifyDeep type (#882)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-06-04 12:31:55 +02:00
Rory Abraham
863511d600
ConditionalKeys: Fix filtering out never type (#881) 2024-05-25 12:39:52 +02:00
Ruben Grimm
4e7bb18a7c
CamelCasedPropertiesDeep: Fix tuple being incorrectly turned into array (#818) 2024-05-06 20:06:29 +07:00
Sindre Sorhus
909c38e997 Add Or type 2024-04-29 14:36:25 +07:00
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