Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

209
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda