Skip to main content
Module

x/tsafe/res/Equals_example2.ts

🔩 The missing TypeScript utils
Go to Latest
File
/* eslint-disable @typescript-eslint/ban-types */import type { Equals } from "../index.ts";import { assert } from "../assert.ts";
type A = { foo: string } | undefined;type B = undefined | { foo: string };
assert<Equals<A, B>>();