JSFiddle - React, Tailwind, and code Playground
by WoJWoJ
TypeScript
type Data = {
name: string,
age: number
}
type IndexedData = monitors: {
[key: string]: Data;
};
const id: IndexedData = {}
const allData = Object(id.values)
by WoJWoJ
type Data = {
name: string,
age: number
}
type IndexedData = monitors: {
[key: string]: Data;
};
const id: IndexedData = {}
const allData = Object(id.values)