-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Overview
Currently when we create the index.ts
file, enums are hardcoded into type defination itself.
Example:
export interface IngressPortStatus {
error?: string;
port: number;
protocol: "SCTP" | "TCP" | "UDP";
}
Here protocol
is an enum that should be a type of its own, so that it is easy to process and codeup when using this type definaiton.
Implementation
export type EnumIngressPortStatusProtocol = "SCTP" | "TCP" | "UDP";
export interface IngressPortStatus {
error?: string;
port: number;
protocol: EnumIngressPortStatusProtocol;
}
Note
Look into how to telescope handles enums and types
Metadata
Metadata
Assignees
Labels
No labels