281 Commits

Author SHA1 Message Date
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
Sindre Sorhus
86ddc1a97e Meta tweaks 2023-11-08 15:23:58 +07:00
Haozheng Li
996171b65f
Add Paths type (#741) 2023-11-07 20:51:39 +07:00
Haozheng Li
30aa0ad08a
Add UnknownArray type (#740) 2023-11-04 20:56:45 +07:00
Haozheng Li
5eeac02c7f
PartialDeep: Ensure it doesn't recurse into prototype properties (#738) 2023-11-02 18:40:12 +07:00
Haozheng Li
9960ba4d9f
ConditionalPickDeep: Ensure it doesn't recurse into prototype properties (#736) 2023-10-30 21:38:07 +07:00
Haozheng Li
b9723d4785
Writable: Support array, map, and set (#726)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-10-26 16:31:08 +07:00
Lucas Teles
964466c9d5
Add SetFieldType type (#721)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-10-25 23:44:24 +07:00
Haozheng Li
9630089d43
LastArrayElement: Fix handling of tuple with spread elements (#727) 2023-10-25 17:14:47 +07:00
Haozheng Li
75edeefd4a
PartialDeep: Skip constructor (#730) 2023-10-25 16:27:39 +07:00
Haozheng Li
3ee234ad18
ReadonlyDeep: Skip constructor (#728) 2023-10-25 02:58:13 +07:00
Haozheng Li
9baccc358c
WritableDeep: Fix array handling (#724) 2023-10-24 03:08:09 +07:00
Lucas Teles
6c76e4a572
Add ArrayValues type (#720)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-10-21 23:15:02 +07:00
Haozheng Li
9f2388dc53
Add SetParameterType type (#722)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-10-21 22:12:15 +07:00
Lucas Teles
c330852999
Add ArrayIndices type (#716)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-10-21 13:29:17 +07:00
Haozheng Li
d8b44cbe1e
Add UndefinedOnPartialDeep type (#700)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-10-18 17:26:52 +07:00
Henrique Inonhe
051739901f
Add KeysOfUnion type (#709)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-10-18 02:42:07 +07:00
Haozheng Li
e5d145d2c1
Add IntRange type (#707)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-10-18 02:32:11 +07:00
Nicholas Rakoto
157ed07c87
Jsonify: Improve type inference for objects with .toJSON() extending primitives (#690) 2023-10-17 15:41:26 +07:00
Henrique Inonhe
fcdcfe9b15
OverrideProperties: Fix autocomplete in the type (#712) 2023-10-17 01:49:46 +07:00
Bazyli Brzóska
61f2ff9bc3
UnionToIntersection: Allow indexing by the resulting type (#682) 2023-10-07 11:17:42 +07:00
Emiya
4378507281
IsLiteral: Don't restrict generic type (#684) 2023-09-30 22:42:52 +07:00
Emiya
025f6e9db5
Jsonify: Fix handling of arrays (#673) 2023-09-30 21:32:23 +07:00
Donovan Hiland
5351533873
Jsonify: Fix handling of nested objects with only a name property (#691)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-09-27 01:13:21 +07:00
Sindre Sorhus
181c203b5e Fix missing export
Fixes #674
2023-08-27 22:42:43 +02:00
Sindre Sorhus
58129912c0 Meta tweaks 2023-08-26 18:02:25 +02:00
Ethan Resnick
277ada292d
Add Tagged and UnwrapTagged types (#672) 2023-08-26 17:48:57 +02:00
kkmuffme
98bb74d3cb
Add NonEmptyObject type (#623)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-08-25 13:19:25 +02:00
Ethan Resnick
cff9808189
ReadonlyDeep: Reduce likelyhood of "instantiation excessively deep" errors (#650) 2023-08-08 11:46:49 +02:00
Matan Yadaev
b2bcc3833c
Add UnknownRecord type (#660)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Tommy <tmitchell7@uh.edu>
2023-08-08 11:45:24 +02:00
Tommy
0a098c61bc
Add RequireOneOrNone type (#654) 2023-07-30 17:02:40 +02:00
Sindre Sorhus
ca94c3b30e Require Node.js 16 and TypeScript 5.1 2023-07-16 12:04:52 +02:00
Sindre Sorhus
d743202a0a Revert "Revert "Jsonify: Fix handling of tuples (#638)""
This reverts commit 9fdac37ea5e1ea7fcc444a8df95c8eafe88dca2f.
2023-07-16 12:04:52 +02:00
andrew jarrett
3475a023e5
LastArrayElement: Avoid recursion (#647) 2023-07-16 12:02:54 +02:00
Sindre Sorhus
5d903feb86 Don’t use arguments parameter name
Closes #645
Fixes #644
2023-07-16 11:48:53 +02:00
Sindre Sorhus
9fdac37ea5 Revert "Jsonify: Fix handling of tuples (#638)"
This reverts commit 605b9011726e72c6ff3735ce6c864263ff5bdcb6.
2023-07-16 11:44:27 +02:00