Skip to main content
Module

x/tsafe/test/flip.type.ts

🔩 The missing TypeScript utils
Go to Latest
File
/* eslint-disable @typescript-eslint/ban-ts-comment */import { flip } from "../flip.ts";
{ const obj = { "is_": true, "a": 1, };
//@ts-expect-error flip(obj, "a");}
{ type A = { "is_": boolean; "a"?: number; };
const obj: A = { "is_": true, };
//@ts-expect-error flip(obj, "a");}