Skip to content

Commit 68b7bd7

Browse files
committed
build: move helper type to JSR
After denoland/std#6154 was accepted, we no longer need to rely on our implementation of it. This PQ replaces it with the implementation from @std.
1 parent 47d8824 commit 68b7bd7

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

test/deps.test.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,7 @@ export {
1212
export { afterEach, beforeEach, describe, it } from "jsr:@std/testing/bdd";
1313
export { type Spy, spy, type Stub, stub } from "jsr:@std/testing/mock";
1414
export { assertType, type IsExact } from "jsr:@std/testing/types";
15-
16-
/**
17-
* Checks if the actual type `A` is assignable to the expected type `E`, and
18-
* vice versa.
19-
*
20-
* ```ts
21-
* // false because E is not assignable to A
22-
* type P = IsMutuallyAssignable<string & RegExpMatchArray, string>;
23-
* // false because A is not assignable to E
24-
* type Q = IsMutuallyAssignable<string | RegExpMatchArray, string>;
25-
* // true
26-
* type R = IsMutuallyAssignable<string | (string & RegExpMatchArray), string>;
27-
* ```
28-
*/
29-
export type IsMutuallyAssignable<A, E> = [E] extends [A]
30-
? [A] extends [E] ? true : false
31-
: false;
15+
export { type IsMutuallyAssignable } from "jsr:@std/testing/unstable-types";
3216

3317
/**
3418
* Collects a potentially async iterator of `Uint8Array` objects into a single

0 commit comments

Comments
 (0)