Skip to content

Commit

Permalink
Merge pull request #725 from sauramirez/master
Browse files Browse the repository at this point in the history
Adds missing TS uiCompleteScript alternative (fixes glennjones#710)
  • Loading branch information
robmcguinness committed Jul 22, 2021
2 parents 5df90b7 + f996cf1 commit a45a1e0
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 a45a1e0

Please sign in to comment.