Commit Graph

8 Commits

Author SHA1 Message Date
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
al
6f9effc3bb 1. Made revisions as suggested by rbuckton
+ Removed the declare module 'jsbn' {
    + Added export as namespace jsbn;
    + export RandomGenerator and Reduction interface
2. Tested in a library package.
3. Tested in an application that installs the library package.
2017-10-31 20:30:04 -07:00
Al Tabayoyon
7f4e260887 Updated version from v1.2 to v1.3.0 2017-10-29 20:57:45 -07:00
Al Tabayoyon
3688a1f75d Updates types/jsbn: index.d.ts and jsbn-tests.ts
Issue:
    Error in @types/jsbn Typescript declarations file.

Symptom:
    After installing typescript, jsbn and @types/jsbn in a project,
    creation of a Typescript file that import of BigInteger with
        import {BigInteger} from 'jsbn';
    results in
        TS2306: File <path-to>node_modules/@types/jsbn/index.d.ts is not a module.

Resolution:
    In @types/jsbn/index.d.ts, replace line
        declare namespace jsbn {
    with
        declare module 'jsbn' {

Additional Notes:
    When using current @types/jsbn as is,
    using Webstorm's "quickfix"  to resolve a reference to BigInteger
       example: const bi = new BigInteger('2', 16);
    may result in adding
        import BigInteger = jsbn.BigInteger;
    which will work with local builds but if it becomes a published npm
    package (lets call it zzz), a browser-side application (e.g. Angular)
    importing package zzz will result in a JavaScript runtime error
    as it is unable to resolve 'jsbn.BigInteger'.
2017-10-29 20:36:45 -07:00
Andy
19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00