Skip to content

Number.MAX_SAFE_INTEGER is unknown #145

@pcastornii

Description

@pcastornii

This is my code:

let a: number = Number.MAX_VALUE; //OK
let b: number = Number.MAX_SAFE_INTEGER; //ERROR

The error is shown only in Netbeans Editor, the code is compiled without any problems.
Here they say Number.MAX_SAFE_INTEGER must work in ES6.

This is the list of files in lib folder to which nbts plugin is set.

cancellationToken.js		   lib.es2015.d.ts		     lib.es2017.object.d.ts	    lib.esnext.d.ts		      tsserver.js
cs				   lib.es2015.generator.d.ts	     lib.es2017.sharedmemory.d.ts   lib.esnext.full.d.ts	      tsserverlibrary.d.ts
de				   lib.es2015.iterable.d.ts	     lib.es2017.string.d.ts	    lib.esnext.intl.d.ts	      tsserverlibrary.js
diagnosticMessages.generated.json  lib.es2015.promise.d.ts	     lib.es2017.typedarrays.d.ts    lib.esnext.symbol.d.ts	      typescript.d.ts
es				   lib.es2015.proxy.d.ts	     lib.es2018.d.ts		    lib.scripthost.d.ts		      typescript.js
fr				   lib.es2015.reflect.d.ts	     lib.es2018.full.d.ts	    lib.webworker.d.ts		      typescriptServices.d.ts
it				   lib.es2015.symbol.d.ts	     lib.es2018.intl.d.ts	    lib.webworker.importscripts.d.ts  typescriptServices.js
ja				   lib.es2015.symbol.wellknown.d.ts  lib.es2018.promise.d.ts	    pl				      typesMap.json
ko				   lib.es2016.array.include.d.ts     lib.es2018.regexp.d.ts	    protocol.d.ts		      typingsInstaller.js
lib.dom.d.ts			   lib.es2016.d.ts		     lib.es5.d.ts		    pt-br			      watchGuard.js
lib.dom.iterable.d.ts		   lib.es2016.full.d.ts		     lib.es6.d.ts		    README.md			      zh-cn
lib.d.ts			   lib.es2017.d.ts		     lib.esnext.array.d.ts	    ru				      zh-tw
lib.es2015.collection.d.ts	   lib.es2017.full.d.ts		     lib.esnext.asynciterable.d.ts  tr
lib.es2015.core.d.ts		   lib.es2017.intl.d.ts		     lib.esnext.bigint.d.ts	    tsc.js

Could anyone say how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions