From 2539f72c36c220148c8fca8e8320a2577e0cc7af Mon Sep 17 00:00:00 2001 From: Nikolaj Kappler Date: Mon, 29 Oct 2018 11:09:44 +0100 Subject: [PATCH] cleanup, fixes workstream: --- types/tern/index.d.ts | 11 +++++++++++ types/tern/lib/infer/index.d.ts | 1 + types/tern/lib/tern/index.d.ts | 1 + types/tern/test/tern.test.ts | 2 +- 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/types/tern/index.d.ts b/types/tern/index.d.ts index e69de29bb2..a2b0a0ded7 100644 --- a/types/tern/index.d.ts +++ b/types/tern/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for tern +// Project: https://github.com/ternjs/tern +// Definitions by: Nikolaj Kappler +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "tern" { + import * as infer from "tern/lib/infer"; + import * as tern from "tern/lib/tern"; + const t: typeof tern & typeof infer; + export = t; +} diff --git a/types/tern/lib/infer/index.d.ts b/types/tern/lib/infer/index.d.ts index af953d9832..32d8bfb241 100644 --- a/types/tern/lib/infer/index.d.ts +++ b/types/tern/lib/infer/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/ternjs/tern // Definitions by: Nikolaj Kappler // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 import * as ESTree from "estree"; diff --git a/types/tern/lib/tern/index.d.ts b/types/tern/lib/tern/index.d.ts index 15073c4383..a4cee5e0e4 100644 --- a/types/tern/lib/tern/index.d.ts +++ b/types/tern/lib/tern/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/ternjs/tern // Definitions by: Nikolaj Kappler // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 // IMPORTANT Note: These type definitions are oriented closely to the official documentation, // which does not seem to match the implementation exactly in some places. diff --git a/types/tern/test/tern.test.ts b/types/tern/test/tern.test.ts index 42f113a64c..dadb195e73 100644 --- a/types/tern/test/tern.test.ts +++ b/types/tern/test/tern.test.ts @@ -23,7 +23,7 @@ server.request({ }); declare module "tern/lib/tern" { - interface QueryMap { + interface QueryRegistry { someUnknownType: { query: { type: "someUnknownType"