• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

170
Vistas
typescript access experimental features in the Navigator type

I wish to access the Effective connection type in the navigator.

const effectiveConnectionType = navigator.connection?.effectiveType ?? 'n/a'

But typescript tells me that Property 'effectiveType' does not exist on type 'NetworkInformation',

I'm guessing that it is because effectiveType is not fully supported. I would hope that it would have been optional declared (effectiveType?: 'slow-2g' | '2g' | '3g' | '4g') by typescript, but it has not.

I'm seeking good recommendation(s) on how to deal with this?

about 3 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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda