Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

171
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!