Skip to content

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

338 B
Raw Blame
type LiteralString = unknown;
type LiteralTrue = unknown;
type LiteralNumbers = unknown;
type LiteralObject = {};
type LiteralFunction = unknown;

const literalString = undefined;
const literalTrue = undefined;
const literalNumber = Math.random() > 0.5 ? undefined : undefined;
const literalObject = {};
const literalFunction = () => {};