528 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
80e454be25 4.8.1 v4.8.1 2023-11-17 19:23:27 +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
Sindre Sorhus
827c2f1dd8 4.8.0 v4.8.0 2023-11-17 15:59:09 +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
Sindre Sorhus
570e27f8fd 4.7.1 v4.7.1 2023-11-09 14:44:58 +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
Sindre Sorhus
af160e8527 4.7.0 v4.7.0 2023-11-09 03:39:24 +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
Sindre Sorhus
017bf38ebb 4.6.0 v4.6.0 2023-10-25 18:46:07 +07:00
Haozheng Li
9630089d43
LastArrayElement: Fix handling of tuple with spread elements (#727) 2023-10-25 17:14:47 +07:00
Haozheng Li
89e299358b
Add class test case for MergeDeep (#731) 2023-10-25 17:02:11 +07:00
Sindre Sorhus
8a521293b5 Welcome @Emiyaaaaa as a maintainer 🎉 2023-10-25 17:01:07 +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
Sindre Sorhus
010dfdda14 4.5.0 v4.5.0 2023-10-18 20:00:58 +07:00
Sindre Sorhus
67f4ee975b Add another alias to the readme 2023-10-18 19:53:25 +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
Sindre Sorhus
47626cf470 4.4.0 v4.4.0 2023-10-07 11:37:35 +07:00
Bazyli Brzóska
61f2ff9bc3
UnionToIntersection: Allow indexing by the resulting type (#682) 2023-10-07 11:17:42 +07:00
Sindre Sorhus
113400b53a 4.3.3 v4.3.3 2023-09-30 23:11:34 +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
Sindre Sorhus
493013b8b2 4.3.2 v4.3.2 2023-09-27 01:33:41 +07:00
Sindre Sorhus
2cd5ef4d5e Recommend strict tsconfig 2023-09-27 01:18:56 +07:00