Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

172
Visualizações
How can I represent objects as an interface

How can I represent the following javascript object as an interface: I did try using http://json2ts.com/, however did not give a clean and dynamic interface. Hence, I do not want the id/codes (i.e. 6000, 6001, 6002) to be present in the interface.

{
    "6000": {
        "id": 6000,
        "type": "text",
        "subType": "tileDynamicSection",
        "title": "Title 1",
        "description": "Description 1",
        "imageUrl": "https://prod.assets.domain.com/uploads/myimage.jpg"
    },
    "6001": {
        "id": 6001,
        "type": "text",
        "subType": "tileDynamicSection",
        "title": "Title 2",
        "description": "Description 2",
        "imageUrl": "https://prod.assets.domain.com/uploads/myimage.jpg"
    },
    "6002": {
        "id": 6002,
        "type": "text",
        "subType": "tileDynamicSection",
        "title": "Title 3",
        "description": "Description 3",
        "imageUrl": "https://prod.assets.domain.com/uploads/myimage.jpg"
    }
}
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

export interface Images {
  [key: string]: {
      id: number;
      type: string;
      subType: string;
      title: string;
      description: string;
      imageUrl: string;
  }
}
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda