Typescript: Property 'languages' does not exist on type 'Navigator'.

Created on 4 Jun 2017  ·  3Comments  ·  Source: microsoft/TypeScript

TypeScript Version: 2.3.2

Code

navigator.languages

Expected behavior:
It should be defined and be of string[] type.

Actual behavior:
compiler error:

Property 'languages' does not exist on type 'Navigator'.

I've opened a PR here to fix this: https://github.com/Microsoft/TSJS-lib-generator/pull/263

Bug lib.d.ts Fixed help wanted

Most helpful comment

Im using the Typescript 2.4.2 ( And Angular 4) and I have the same problem.

All 3 comments

The PR was merged on Microsoft/TSJS-lib-generator, so I'm closing this.

Im using the Typescript 2.4.2 ( And Angular 4) and I have the same problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jbondc picture jbondc  ·  3Comments

uber5001 picture uber5001  ·  3Comments

MartynasZilinskas picture MartynasZilinskas  ·  3Comments

siddjain picture siddjain  ·  3Comments

weswigham picture weswigham  ·  3Comments