
type CrumpetType = "English" | "Scottish" | "Square" | "Pikelet";
export const CrumpetTypes = {
    English: "English" as CrumpetType,
    Scottish: "Scottish" as CrumpetType,
    Square: "Square" as CrumpetType,
    Pikelet: "Pikelet" as CrumpetType
};

export interface Crumpet {
    name:string;
    type:CrumpetType;
}
Define crumpet data. Note the patch for a lack of string based enums to be fixed in a future version of TypeScript.
Define crumpet data. Note the patch for a lack of string based enums to be fixed in a future version of TypeScript.
