From c30decab77c4ebeb34ebd1d73b0f45bb26944c79 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sun, 15 Sep 2019 22:58:06 +1000 Subject: Fix type directive parsing (#2954) --- tests/type_definitions/fizz.d.ts | 4 ++-- tests/type_definitions/fizz.js | 2 +- tests/type_definitions/qat.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 tests/type_definitions/qat.ts (limited to 'tests/type_definitions') diff --git a/tests/type_definitions/fizz.d.ts b/tests/type_definitions/fizz.d.ts index 4b087efb7..34eb41b96 100644 --- a/tests/type_definitions/fizz.d.ts +++ b/tests/type_definitions/fizz.d.ts @@ -1,2 +1,2 @@ -/** An exported value. */ -export const fizz: string; +/** A global value. */ +declare const fizz: string; diff --git a/tests/type_definitions/fizz.js b/tests/type_definitions/fizz.js index 5141a4ddf..852162c94 100644 --- a/tests/type_definitions/fizz.js +++ b/tests/type_definitions/fizz.js @@ -1 +1 @@ -export const fizz = "fizz"; +globalThis.fizz = "fizz"; diff --git a/tests/type_definitions/qat.ts b/tests/type_definitions/qat.ts new file mode 100644 index 000000000..6196c9d38 --- /dev/null +++ b/tests/type_definitions/qat.ts @@ -0,0 +1 @@ +export const qat = "qat"; -- cgit v1.2.3