The Library Bookmarks · Notes · Snippets

← Back to the front page Filed

Define the index type (ts7053)

Read it at stackoverflow.com ↗ typescript

const myObj: {[index: string]:any} = {}

alt: Record<string, any>

■