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

207
Visualizações
Typescript types/intellisense that change dynamically, based on other objects?

I've created a DX tool that's used like this:

const Title = () => (
  <Div w_full bg_black text_white />
)
  1. User passes attributes to a function component
  2. Component parses the attributes, which are passed into Styled Components
  3. A CSS rich component is returned

So far so good, and I've got full intellisense for the above keys, but I'm trying to implement a 'describe' attribute, with which the use case is:

const Title = () => (
  <Div describe="kinda big, centered on screen" />

The describe string is sent to a language processing API, and the component generates intellisense suggestions based on what the user is likely describing. So once they hit this stage in their typing, it should populate their intellisense with certain tags:

const Title = () => (
  <Div
    describe="kinda big, centred on screen"
    *tags=*
  />
)

Is this possible?

about 4 years ago · Juan Pablo Isaza
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