Microsoft/TypeScript

Typings for navigator.connection gone since TS 4.8

Open

#56.962 aberto em 5 de jan. de 2024

Ver no GitHub
 (2 comments) (6 reactions) (0 assignees)TypeScript (6.726 forks)batch import
BugDomain: lib.d.tsHelp Wanted

Métricas do repositório

Stars
 (48.455 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)

Description

⚙ Compilation target

es5

⚙ Library

es6 dom dom.iterable es2016 es2017 esnext

Missing / Incorrect Definition

navigator.connection is missing after updating Typescript from 4.5 to 5.3. I checked the other versions and it seems it got removed since version 4.8. However, I couldn't find this change in the breaking changes docs.

Sample Code

const c = navigator.connection;

Documentation Link

No response

Guia do colaborador