Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Text · 6 lines · 255 B · at 2e2b18f

import { tag, type Tagged } from "@tsus/runtime";export type Shape = Tagged<"Circle", number> | Tagged<"Square", number>;export const circle = (r: number): Shape => tag("Circle", r);export const square = (side: number): Shape => tag("Square", side);