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

bgrieder picture bgrieder  路  3Comments

Antony-Jones picture Antony-Jones  路  3Comments

Zlatkovsky picture Zlatkovsky  路  3Comments

wmaurer picture wmaurer  路  3Comments

jbondc picture jbondc  路  3Comments