Skip to content

Commit

Permalink
support TypeScript 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Feb 19, 2020
1 parent 647c041 commit 6acb9e5
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -64,7 +64,7 @@
"semver": "7.1.3",
"srcset": "2.0.1",
"string-width": "4.2.0",
"typescript": "3.7.5",
"typescript": "3.8.1-rc",
"unicode-regex": "3.0.0",
"unified": "8.4.2",
"vnopts": "1.0.2",
Expand Down
11 changes: 11 additions & 0 deletions tests/typescript_class/standard_private_fields.ts
@@ -0,0 +1,11 @@
class Square {
#sideLength: number;

constructor(sideLength: number) {
this.#sideLength = sideLength;
}

equals(other: any) {
return this.#sideLength === other.#sideLength;
}
}
1 change: 1 addition & 0 deletions tests/typescript_export/export-as-ns.ts
@@ -0,0 +1 @@
export * as utilities from "./utilities.js";
1 change: 1 addition & 0 deletions tests/typescript_import_export/jsfmt.spec.js
@@ -0,0 +1 @@
run_spec(__dirname, ["typescript"]);
5 changes: 5 additions & 0 deletions tests/typescript_import_export/type-modifier.ts
@@ -0,0 +1,5 @@
import type { SomeThing } from "./some-module.js";
export type { SomeThing };

import type Foo from "./foo.js";
export type Foo;
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -7670,10 +7670,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@3.7.5:
version "3.7.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae"
integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==
typescript@3.8.1-rc:
version "3.8.1-rc"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.1-rc.tgz#f94333c14da70927ccd887be2e91be652a9a09f6"
integrity sha512-aOIe066DyZn2uYIiND6fXMUUJ70nxwu/lKhA92QuQzXyC86fr0ywo1qvO8l2m0EnDcfjprYPuFRgNgDj7U2GlQ==

uglify-js@^3.1.4:
version "3.7.6"
Expand Down

0 comments on commit 6acb9e5

Please sign in to comment.