[Tern] export constructor option interfaces (#34256)

tern plugins may add custom constructor options.
to properly extend these interfaces they need to be exported.

workstream:
This commit is contained in:
Nikolaj Kappler
2019-03-28 00:03:36 +01:00
committed by Ron Buckton
parent 95c83ee6f1
commit b32bd87fcf

View File

@@ -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 servers 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;
/**