mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-07 10:40:13 +00:00
[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:
committed by
Ron Buckton
parent
95c83ee6f1
commit
b32bd87fcf
6
types/tern/lib/tern/index.d.ts
vendored
6
types/tern/lib/tern/index.d.ts
vendored
@@ -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;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user