Skip to content

Commit

Permalink
Adds missing TS uiCompleteScript alternative (fixes glennjones#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauramirez committed Jul 22, 2021
1 parent 5df90b7 commit f996cf1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.d.ts
Expand Up @@ -55,6 +55,12 @@ declare namespace hapiswagger {

type SortEndpointsType = 'alpha' | 'method' | 'ordered';

type UiCompleteScriptObjectType {
src: string;
}

type UiCompleteScriptType = string | UiCompleteScriptObjectType

interface LicenseOptions {
/**
* The name of the license used for the API
Expand Down Expand Up @@ -364,7 +370,7 @@ declare namespace hapiswagger {
* A JavaScript string injected into the HTML, called when UI loads.
* @default: null
*/
uiCompleteScript?: string;
uiCompleteScript?: UiCompleteScriptType;

/**
* Sets the external validating URL Can switch off by setting to `null`
Expand Down

0 comments on commit f996cf1

Please sign in to comment.