Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix editor-types.ts (#606)

ggrandi7d2fd26a76d7
diff --git a/packages/monaco/src/editor-types.ts b/packages/monaco/src/editor-types.ts
index 0ee01100..70e17519 100644
--- a/packages/monaco/src/editor-types.ts
+++ b/packages/monaco/src/editor-types.ts
@@ -89,7 +89,7 @@ declare function NotEqual<A, B>(
declare function Extends<A, B>(
...args: [
...([a: A, b: B] | []),
- ...(A extends B ? [] : [msg: [A, "doesn't extend", B]])
+ ...([A] extends [B] ? [] : [msg: [A, "doesn't extend", B]])
]
): void;
`;