diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b4c0d1228..a5a4bf60d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,7 +11,7 @@ updates: - package-ecosystem: 'npm' directory: '/' schedule: - interval: 'weekly' + interval: 'monthly' versioning-strategy: 'increase-if-necessary' groups: development-dependencies: diff --git a/package.json b/package.json index f0018f3aa..55362f094 100644 --- a/package.json +++ b/package.json @@ -39,10 +39,10 @@ "generics" ], "devDependencies": { - "expect-type": "^0.15.0", + "expect-type": "^0.19.0", "npm-run-all2": "^6.1.2", "tsd": "^0.31.0", - "typescript": "~5.4.3", + "typescript": "~5.4.5", "xo": "^0.58.0" }, "xo": { diff --git a/readme.md b/readme.md index acef1db93..673f3021f 100644 --- a/readme.md +++ b/readme.md @@ -343,7 +343,8 @@ type ShouldBeNever = IfAny<'not any', 'not never', 'never'>; - `RequireOnlyOne` - See [`RequireExactlyOne`](source/require-exactly-one.d.ts) - `AtMostOne` - See [`RequireOneOrNone`](source/require-one-or-none.d.ts) - `AllKeys` - See [`KeysOfUnion`](source/keys-of-union.d.ts) -- `Branded`, `Opaque` - See [`Tagged`](source/opaque.d.ts) +- `Branded` - See [`Tagged`](source/opaque.d.ts) +- `Opaque` - See [`Tagged`](source/opaque.d.ts) ## Tips diff --git a/test-d/required-deep.ts b/test-d/required-deep.ts index 0eff5b74d..6b55f1edb 100644 --- a/test-d/required-deep.ts +++ b/test-d/required-deep.ts @@ -87,6 +87,8 @@ type FooRequired = { type FooBar = Exclude; type FooRequiredBar = FooRequired['bar']; +// TODO: Fix this case: https://github.com/mmkal/expect-type/issues/34 +// @ts-expect-error expectTypeOf>().toEqualTypeOf(); expectTypeOf>().toEqualTypeOf(); expectTypeOf>().toEqualTypeOf(); @@ -107,7 +109,11 @@ expectTypeOf>().toEqualTypeOf>().toEqualTypeOf(); expectTypeOf>().toEqualTypeOf(); expectTypeOf>().toEqualTypeOf(); + +// TODO: Fix this case: https://github.com/mmkal/expect-type/issues/34 +// @ts-expect-error expectTypeOf>().toEqualTypeOf(); + expectTypeOf>().toBeNever(); expectTypeOf>().toEqualTypeOf();