Skip to content

Commit 83c077a

Browse files
committed
Update trusted-types.ts
1 parent 55df8ec commit 83c077a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

unittests/files/trusted-types.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
declare const assertNotAssignable: <T>() => <T1>(
1+
declare const assertNotAssignable: <T1, T2>(
22
_x: T1,
3-
) => T1 extends T
3+
_y: T2,
4+
) => T2 extends T1
45
? { error: "Right side should not be assignable to left side" }
56
: () => void;
67

@@ -10,6 +11,6 @@ document.body.innerHTML = "foo";
1011
document.body.innerHTML = policy.createHTML("foo");
1112

1213
declare const position: GeolocationPosition;
13-
assertNotAssignable<typeof document.head.innerHTML>()(position)();
14+
assertNotAssignable(document.head.innerHTML, position)();
1415

1516
const html: string = document.body.innerHTML;

0 commit comments

Comments
 (0)