185 Commits

Author SHA1 Message Date
Sindre Sorhus
9fdac37ea5 Revert "Jsonify: Fix handling of tuples (#638)"
This reverts commit 605b9011726e72c6ff3735ce6c864263ff5bdcb6.
2023-07-16 11:44:27 +02:00
Trevor Florence
a8d6ad0f79
Add HasReadonlyKeys and HasWritableKeys types (#640)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-07-09 13:41:10 +02:00
Michaël De Boey
605b901172
Jsonify: Fix handling of tuples (#638)
Co-authored-by: Pedro Cattori <pcattori@gmail.com>
2023-07-09 13:33:48 +02:00
Alexander J. Vincent
8edb68137f
Fix accessing prototype property when using Class and AbstractClass types (#632) 2023-06-20 12:19:36 +03:00
Shinigami
b2e22fb57f
Add SetReadonly type (#624) 2023-06-14 15:41:14 +03:00
Sindre Sorhus
9c148ac87e Add failing test for #629 2023-06-04 12:35:42 +03:00
hiroki osame
dc38b708ff
PackageJson: Disallow undefined in exports (#626) 2023-05-30 21:32:38 +07:00
kkmuffme
a3e1589d54
Add WritableKeysOf and ReadonlyKeysOf type (#619) 2023-05-20 16:12:51 +07:00
Jared Poole
c2bf374910
Add RequiredDeep type (#614)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Karibash <40270352+Karibash@users.noreply.github.com>
2023-05-17 14:52:41 +07:00
Sindre Sorhus
cc01e517d5 Meta tweaks 2023-05-11 15:20:02 +07:00
Migel Hoxha
9c12497127
SetRequired: Fix it incorrectly combining individual key types (#611) 2023-05-03 01:35:50 +07:00
Jinta Orishima
44ec7ec1e9
OverrideProperties: Fix a missing case (#609) 2023-04-29 01:09:53 +07:00
Trevor Florence
200a55bbfc
Fix test filename for ObservableLike tests (#607) 2023-04-28 12:23:09 +07:00
Eran Hirsch
bb8131451d
Join: Support more cases (#594) 2023-04-25 20:24:27 +07:00
Niclas
c365837d65
Add OverrideProperties type (#597)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-04-23 16:30:29 +08:00
Tommy
4045737499
Add IsX/IfX types for any/never/unknown (#564)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-04-06 00:07:21 +09:00
Alvis Tang
5374588a88
Add LiteralToPrimitiveDeep type (#584)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2023-04-04 15:53:19 +09:00
Sébastien Mischler
60a057b891
Fix Merge with optional any value (#583) 2023-03-29 21:38:09 +09:00
Trevor Florence
7a76a6f0bc
Fix AbstractClass test to not needlessly use expectAssignable (#574) 2023-03-23 16:54:49 +07:00
orimiles5
c5743c9dab
Except: Add requireExactProps option (#560)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Tommy <tmitchell7@uh.edu>
2023-03-23 16:54:14 +07:00
Trevor Florence
18f8a1116f
Remove need for @ts-expect-error usage in test (#575) 2023-03-23 02:23:05 +07:00
Shuntaro Nishizawa
aafc938be4
TsConfigJson: Add TypeScript 5.0 options (#573) 2023-03-17 15:08:17 +07:00
Pyry Heiskanen
2e1cec8aaf
Add TaggedUnion type (#566) 2023-03-13 14:05:24 +07:00
Ray Wong
9b12767a2f
Add AbstractClass type (#559) 2023-03-11 22:33:52 +07:00
Tommy
9d00bac4a4
Add IsLiteral types (#563) 2023-03-11 03:54:24 +07:00
Michael Mok
747e29be45
Join: Fix usage of single element const tuple (#558) 2023-02-26 16:36:22 +07:00
Tomer Aberbach
7538c05907
Add WritableDeep type (#540) 2023-02-17 12:56:25 +07:00
Bernard
3ebab0d1d6
PackageJson: Fix Imports and Exports types (#555) 2023-02-17 12:52:36 +07:00
Christopher Hiller
e3b1e96d42
TsConfigJson: Fix Plugin type (#554) 2023-02-09 21:56:20 +07:00
Bernard
a729046284
PackageJson: Make Imports object properties optional (#551) 2023-02-04 08:56:31 +07:00
Chris Vaszauskas
311051cc05
JsonValue: Fix support for readonly arrays (#549) 2023-01-30 18:28:06 +07:00
George Zhao
5125e1bb21
Exact: Fix handling of deep optional unions (#546) 2023-01-20 15:04:18 +07:00
Connor White
f8d968f2d1
Improve word separators (#542) 2023-01-15 08:37:38 +07:00
Connor White
98ab9036c9
SplitWords: Fix bug with casing (#538) 2023-01-13 11:33:45 +07:00
Connor White
a82342a943
Fix issue with IsNumeric when input is whitespace (#539) 2023-01-13 11:31:47 +07:00
David Luzar
db81191cd2
Join: Support const tuple values (#533) 2022-12-26 00:03:06 +01:00
Ray Wong
00b13f8b8a
CamelCase: Fix handling of non-literal strings (#531) 2022-12-26 00:02:05 +01:00
Takahiro Kato
e5a3a57ea0
Add IsEqual type (#522)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-12-25 23:56:16 +01:00
George Zhao
84269a7854
Exact: Fix handling of Opaque types (#525)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-12-13 14:22:08 +01:00
Sindre Sorhus
8eb7bf2a54 Minor tweaks 2022-12-08 20:19:23 +01:00
Trevor Florence
17dace9bd0
Add GlobalThis type (#511) 2022-12-08 19:52:26 +01:00
Sachin Raja
2071f47efb
Jsonify: Add jump to definition and any support (#519)
Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-11-28 16:00:03 +07:00
Joe Alden
9bae03bbb7
SetNonNullable: Fix usage in type predicate context (#515)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-11-28 15:42:00 +07:00
Sindre Sorhus
055dedb704 Meta tweaks 2022-11-28 15:17:26 +07:00
Trevor Florence
a68f6b2bce
TupleToUnion: Support arrays (#504) 2022-11-05 21:17:49 +07:00
John Sullivan
e11ab807e7
Add Jsonifiable type (#492)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-11-05 15:39:22 +07:00
skarab42
b11f017271
Add preserveConsecutiveUppercase option to CamelCase and add SplitWords type (#501) 2022-11-04 13:33:13 +07:00
ntnyq
846f4dbf44
PackageJson: Strict check for imports (#478) 2022-10-22 02:01:27 +07:00
skarab42
e11d30b727
Fix Jsonify to look deeper (#498) 2022-10-19 22:42:38 +07:00
skarab42
f24821b3c7
Fix Jsonify with empty Set and Map (#497) 2022-10-19 22:41:36 +07:00