Builder
Object Type Builder
Design an object type with clicks instead of syntax. Every change regenerates the TypeScript on the right.
Generated TypeScript
interface User {
readonly id: number;
name: string;
address?: {
city: string;
zip?: string;
};
}Tips: readonly prevents reassignment after creation, ? makes a property optional (its type becomes T | undefined), and nested objects can themselves contain optional and readonly members at any depth.