Sometimes I need to type an object, but I don't know how it will look like. Then I type it with the Record utility type:
export interface Label {
name: string;
options: Record<string, any>[];
}
Sometimes I need to type an object, but I don't know how it will look like. Then I type it with the Record utility type:
export interface Label {
name: string;
options: Record<string, any>[];
}
For further actions, you may consider blocking this person and/or reporting abuse
Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.
olasperu -
Hassan Ahmed -
Anna Golubkova -
Mark Hesketh -
Top comments (0)