From b32bd87fcf8346a58c0e1a3d70a39a7ea2e5be64 Mon Sep 17 00:00:00 2001 From: Nikolaj Kappler Date: Thu, 28 Mar 2019 00:03:36 +0100 Subject: [PATCH] [Tern] export constructor option interfaces (#34256) tern plugins may add custom constructor options. to properly extend these interfaces they need to be exported. workstream: --- types/tern/lib/tern/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/tern/lib/tern/index.d.ts b/types/tern/lib/tern/index.d.ts index 22001ed075..dce523d7eb 100644 --- a/types/tern/lib/tern/index.d.ts +++ b/types/tern/lib/tern/index.d.ts @@ -6,7 +6,7 @@ export { }; // #### Programming interface #### export type ConstructorOptions = CtorOptions & (SyncConstructorOptions | ASyncConstructorOptions); -interface CtorOptions { +export interface CtorOptions { /** The definition objects to load into the server’s environment. */ defs?: Def[]; /** The ECMAScript version to parse. Should be either 5 or 6. Default is 6. */ @@ -17,7 +17,7 @@ interface CtorOptions { plugins?: { [key: string]: object }; } -interface SyncConstructorOptions { +export interface SyncConstructorOptions { /** Indicates whether `getFile` is asynchronous. Default is `false`. */ async?: false; /** @@ -29,7 +29,7 @@ interface SyncConstructorOptions { getFile?(filename: string): string; } -interface ASyncConstructorOptions { +export interface ASyncConstructorOptions { /** Indicates whether `getFile` is asynchronous. Default is `false`. */ async: true; /**