153 Commits

Author SHA1 Message Date
skarab42
beaabe1821
Add ConditionalSimplify and ConditionalSimplifyDeep types (#442) 2022-08-25 03:28:10 +07:00
skarab42
bbccfb88a0
Simplify: Revert back to how it worked in v2.15.1 (#441) 2022-08-24 10:24:03 +03:00
George Zhao
edcad04556
Exact: Support array union (#421)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-08-22 19:10:36 +02:00
hiroki osame
290e3a29ca
PackageJson: Support condition object in exports array (#439) 2022-08-22 19:05:16 +02:00
Johann Cooper
1a69e6379d
Add SetNonNullable type (#431) 2022-08-22 19:03:48 +02:00
Ilia Baryshnikov
8a014e5703
Jsonify: Do not downgrade tuples to arrays (#433) 2022-08-18 18:16:17 +02:00
skarab42
96acab152b
Spread: Support arrays/tuples (#435) 2022-08-17 13:48:12 +02:00
Adrien David
efba9f4709
Add Spread type (#427) 2022-07-30 14:22:37 +02:00
Clément Cloux
1cbd351e8f
Add PartialOnUndefinedDeep type (#426)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-07-30 13:57:04 +02:00
bbrk24
37774694ba
Add recurseIntoArrays option for PartialDeep (#400)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-07-20 13:26:41 +02:00
Sindre Sorhus
edfba7ae22 Minor refactoring 2022-07-19 15:29:20 +02:00
Davide Menegatti
f0b1c3faf6
Add OptionalKeysOf, HasOptionalKeys, RequiredKeysOf, HasRequiredKeys types (#405)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-07-03 21:53:48 +02:00
JonghwanWon
1483de38aa
Replace: Fix the all option (#416) 2022-07-03 21:52:44 +02:00
JonghwanWon
de5e7fcadf
Includes: Fix false-positive when the array contains null and you are checking against undefined (#413) 2022-07-02 17:58:29 +02:00
skarab42
96fe79598e
Make Simplify handle all types (#414)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-07-02 13:49:45 +02:00
Fatih Altinok
095831c506
Don't use BigInt (#412) 2022-06-30 19:44:13 +02:00
Fatih Altinok
8ca2959bc8
Make the Jsonify type more correct (#410) 2022-06-30 18:07:52 +02:00
Dimitris Michalakos
d4d44812c4 Add UnwrapOpaque type (#403)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-06-24 14:02:04 +02:00
hiroki osame
74891f0dfd
Fix TsConfigJson to require paths array (#404) 2022-06-13 17:39:44 +07:00
skarab42
5c793ceadb
Add Replace type (#389)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-05-24 20:35:51 +07:00
Davide Menegatti
f445cc690c
Add ReadonlyTuple type (#383)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-05-24 20:20:19 +07:00
George Zhao
9394d5453e
Add Exact type (#259)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-05-24 20:02:32 +07:00
Vitaly
f2aae51776
Fix deep properties of PackageJson and TsConfigJson (#269) 2022-05-24 19:09:05 +07:00
Mark Fulton
638d597a95
Rename Mutable to Writable (#398) 2022-05-24 18:06:22 +07:00
Aaron Casanova
c5796f5fce
PromiseValue: Fix documentation examples (#391) 2022-04-18 18:24:55 +07:00
Sindre Sorhus
e3234d74aa Use import type
Closes #390
2022-04-09 19:04:14 +07:00
Wesley Wigham
6c7ac47c9f
Get: Fix TypeScript 4.7 compatibility (#388) 2022-03-31 20:11:47 +07:00
hiroki osame
7aa0605eaa
Add watchOptions field to TsConfig type (#384) 2022-03-30 23:16:56 +07:00
Darcy Parker
17b0235699
Jsonify: Handle undefined in array (#310) 2022-03-30 15:56:55 +07:00
Bernard
25d020485c
PackageJson: Allow null targets in Exports type (#377) 2022-03-19 15:17:11 +07:00
hiroki osame
97463e63d6
Add imports field in PackageJson type (#365) 2022-02-19 21:27:26 +07:00
hiroki osame
947f637ab5
Add node-addons in PackageJson export condition (#362) 2022-02-09 01:20:49 +07:00
Rebecca Stevens
db5402803d
ReadonlyDeep: Fix handling of objects with call signatures (#359) 2022-01-31 20:44:19 +07:00
Rebecca Stevens
0ff44616c4
ReadonlyDeep: Fix sets and maps not getting immutable methods (#358) 2022-01-31 16:40:59 +07:00
Younho Choo
dea70a42c5
Add InvariantOf type (#352)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-01-27 17:59:27 +07:00
Tellios
3aabfbc5e7
Add Schema type (#321)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-01-27 17:56:50 +07:00
Asbjørn Hegdahl
dc7043ca6e
Get: Support read only arrays (#355)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-01-27 17:55:58 +07:00
Jan Buschtöns
8103238c0a
Add RemoveIndexSignature type (#335)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-01-20 13:42:24 +07:00
Stuart Dotson
ca459568cd
Extend Get to accept Path as string[] (#353) 2022-01-20 13:09:05 +07:00
Stuart Dotson
3243e22336
Skip Date and RegExp in "deep" types (#349)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-01-18 00:57:59 +07:00
Younho Choo
103966bb0e
Add StringKeyOf type (#344)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-01-18 00:55:48 +07:00
Jonah Snider
c282debab7
Fix readme formatting (#348) 2022-01-09 21:31:44 +07:00
Stuart Dotson
3cc721b6ac
PartialDeep: Ignore Date and RegExp types (#342) 2022-01-09 13:10:30 +07:00
Anatole
066b2a6dde
LiteralUnion: Replace _ key with empty Record (#332) 2022-01-07 14:53:25 +07:00
Sindre Sorhus
6dc9d93833 Minor tweaks 2022-01-06 11:48:20 +01:00
Jonah Snider
ab210eb5a7
Add LiteralToPrimitive type (#340)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-01-06 11:45:47 +01:00
bbrk24
600f0c2486
Jsonify: Allow partial types (#312) 2022-01-06 11:45:10 +01:00
Asbjørn Hegdahl
b9ace21a61
Add strict mode for Get (#317)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-01-06 11:41:09 +01:00
Sindre Sorhus
7f9e08755c More improvements to categories 2021-12-01 23:22:40 +07:00
Jonah Snider
7770489bcd
Add Float type (#330) 2021-12-01 23:09:16 +07:00