We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55df8ec commit 83c077aCopy full SHA for 83c077a
unittests/files/trusted-types.ts
@@ -1,6 +1,7 @@
1
-declare const assertNotAssignable: <T>() => <T1>(
+declare const assertNotAssignable: <T1, T2>(
2
_x: T1,
3
-) => T1 extends T
+ _y: T2,
4
+) => T2 extends T1
5
? { error: "Right side should not be assignable to left side" }
6
: () => void;
7
@@ -10,6 +11,6 @@ document.body.innerHTML = "foo";
10
11
document.body.innerHTML = policy.createHTML("foo");
12
13
declare const position: GeolocationPosition;
-assertNotAssignable<typeof document.head.innerHTML>()(position)();
14
+assertNotAssignable(document.head.innerHTML, position)();
15
16
const html: string = document.body.innerHTML;
0 commit comments