-
Define interface for nested object, with [key: string]
export interface Item { id: number; size: number; } export interface Example { name: string; items: { [key: string]: Item }; }
Last active
November 9, 2023 12:00
-
-
Save xdevmaycry/f647a28c4be81c20d9f4bb4d491811fd to your computer and use it in GitHub Desktop.
typescripts.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment