diff --git a/types/dom-speech-recognition/dom-speech-recognition-tests.ts b/types/dom-speech-recognition/dom-speech-recognition-tests.ts index 8b6dd40f6dd9aa..cc874eb70f3153 100644 --- a/types/dom-speech-recognition/dom-speech-recognition-tests.ts +++ b/types/dom-speech-recognition/dom-speech-recognition-tests.ts @@ -36,6 +36,7 @@ const speechRecognition2: SpeechRecognition = { interimResults: false, lang: "eng", maxAlternatives: 2, + processLocally: true, onaudioend: null, onaudiostart: null, onend: null, @@ -84,3 +85,13 @@ const speechRecognitionErrorEventInit: SpeechRecognitionErrorEventInit = { message: "abcde", }; const speechRecognitionErrorEvent = new SpeechRecognitionErrorEvent("type", speechRecognitionErrorEventInit); + +const speechRecognitionOptions: SpeechRecognitionOptions = { + langs: ["en-GB"], + processLocally: true, +}; + +(async () => { + const availability: AvailabilityStatus = await SpeechRecognition.available(speechRecognitionOptions); + const installOutcome: boolean = await SpeechRecognition.install(speechRecognitionOptions); +}); diff --git a/types/dom-speech-recognition/index.d.ts b/types/dom-speech-recognition/index.d.ts index d0192fc719c585..e2e0082ae4240b 100644 --- a/types/dom-speech-recognition/index.d.ts +++ b/types/dom-speech-recognition/index.d.ts @@ -20,6 +20,7 @@ interface SpeechRecognition extends EventTarget { interimResults: boolean; lang: string; maxAlternatives: number; + processLocally: boolean; onaudioend: ((this: SpeechRecognition, ev: Event) => any) | null; onaudiostart: ((this: SpeechRecognition, ev: Event) => any) | null; onend: ((this: SpeechRecognition, ev: Event) => any) | null; @@ -56,7 +57,25 @@ interface SpeechRecognition extends EventTarget { ): void; } -declare var SpeechRecognition: { prototype: SpeechRecognition; new(): SpeechRecognition }; +// https://wicg.github.io/speech-api/#dictdef-speechrecognitionoptions +interface SpeechRecognitionOptions { + langs: string[]; + processLocally: boolean; +} + +type AvailabilityStatus = + | "unavailable" + | "downloadable" + | "downloading" + | "available"; + +// https://webaudio.github.io/web-speech-api/#speechrecognition +declare var SpeechRecognition: { + prototype: SpeechRecognition; + new(): SpeechRecognition; + available(options: SpeechRecognitionOptions): Promise; + install(options: SpeechRecognitionOptions): Promise; +}; // https://wicg.github.io/speech-api/#speechrecognitionevent interface SpeechRecognitionEventInit extends EventInit { diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index 4782e9a5b90b3a..cc91d102ff7a9b 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -54,6 +54,7 @@ export interface PoolConfig extends ClientConfig { maxUses?: number | undefined; maxLifetimeSeconds?: number | undefined; Client?: (new() => ClientBase) | undefined; + onConnect?: ((client: ClientBase) => void) | undefined; } export interface QueryConfig { diff --git a/types/pg/package.json b/types/pg/package.json index afda2d97573cf2..6f5784acfe7501 100644 --- a/types/pg/package.json +++ b/types/pg/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/pg", - "version": "8.18.9999", + "version": "8.20.9999", "projects": [ "https://github.com/brianc/node-postgres" ], diff --git a/types/pg/pg-tests.ts b/types/pg/pg-tests.ts index 750dcc54a69dcd..39778064b6efe7 100644 --- a/types/pg/pg-tests.ts +++ b/types/pg/pg-tests.ts @@ -432,3 +432,16 @@ const bindConfig = { const con = new Connection(); con.bind(bindConfig, true); + +const poolWithOnConnect = new Pool({ + onConnect: (client) => { + client.query("SELECT 1").then(result => { + console.log(result.rows[0].number); + }); + console.log("onConnect callback is working!"); + }, +}); + +poolWithOnConnect.connect().then(client => { + console.log("client connected"); +}); diff --git a/types/swagger-ui/index.d.ts b/types/swagger-ui/index.d.ts index 9d0fc984985e4b..e0d1a4518f6bef 100644 --- a/types/swagger-ui/index.d.ts +++ b/types/swagger-ui/index.d.ts @@ -37,6 +37,10 @@ declare namespace SwaggerUI { name: string; }> | undefined; + /** + * Enables overriding configuration parameters via URL search params. + */ + queryConfigEnabled?: boolean | undefined; // Plugin system @@ -45,10 +49,6 @@ declare namespace SwaggerUI { * for Swagger UI. */ layout?: string | undefined; - /** - * A Javascript object to configure plugin integration and behaviors - */ - pluginsOptions?: PluginsOptions; /** * An array of plugin functions to use in Swagger UI. */ @@ -132,13 +132,6 @@ declare namespace SwaggerUI { * Default is the order determined by Swagger UI. */ tagsSorter?: SorterLike | undefined; - /** - * When enabled, sanitizer will leave style, class and data-* attributes untouched - * on all HTML Elements declared inside markdown strings. - * This parameter is Deprecated and will be removed in 4.0.0. - * @deprecated - */ - useUnsafeMarkdown?: boolean | undefined; /** * Provides a mechanism to be notified when Swagger UI has finished rendering a newly provided definition. */ @@ -164,6 +157,12 @@ declare namespace SwaggerUI { * Controls whether the "Try it out" section should be enabled by default. */ tryItOutEnabled?: boolean | undefined; + /** + * Enables the request snippet section. + * When disabled, the legacy curl snippet will be used. + * The default is false. + */ + requestSnippetsEnabled?: boolean | undefined; /** * This is the default configuration section for the the requestSnippets plugin. */ @@ -249,6 +248,36 @@ declare namespace SwaggerUI { * If set to true, it persists authorization data and it would not be lost on browser close/refresh */ persistAuthorization?: boolean | undefined; + + // Options missing from https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md + + /** + * Inline Plugin Option. See https://github.com/swagger-api/swagger-ui/blob/master/docs/customization/add-plugin.md + */ + components?: Indexable | undefined; + /** + * Inline Plugin Option. See https://github.com/swagger-api/swagger-ui/blob/master/docs/customization/add-plugin.md + */ + fn?: Indexable | undefined; + /** + * See https://github.com/swagger-api/swagger-ui/blob/master/src/core/config/factorization/system.js + */ + configs?: any; + /** + * Passes initial values to the Swagger UI state. + * See https://github.com/swagger-api/swagger-ui/blob/master/src/core/config/factorization/system.js + */ + initialState?: any; + /** + * Used in src/core/plugins/oas3/fn.js + */ + fileUploadMediaTypes?: string[] | undefined; + /** + * Allows to define a custom uncaught exception handler. + * The default is `null`, which means that the default handler will be used. + * The default handler will log the error to the console. + */ + uncaughtExceptionHandler?: ((error: unknown) => unknown) | null | undefined; } interface PluginsOptions { @@ -313,14 +342,53 @@ declare namespace SwaggerUI { [index: string]: any; } + const config: { + defaults: Required; + merge: (target: SwaggerUIOptions, ...sources: SwaggerUIOptions[]) => SwaggerUIOptions; + typeCast: (options: unknown) => SwaggerUIOptions; + typeCastMappings: { + [key in Exclude]-?: { + typeCaster: (value: unknown, defaultValue?: SwaggerUIOptions[key]) => SwaggerUIOptions[key] | null; + defaultValue?: SwaggerUIOptions[key]; + }; + }; + }; /** * Internal presets * See https://swagger.io/docs/open-source-tools/swagger-ui/customization/overview/#presets */ - var presets: { + const presets: { base: SwaggerUIPreset; apis: SwaggerUIPreset; }; + + const plugins: { + Auth: SwaggerUIPlugin; + Configs: SwaggerUIPlugin; + DeepLining: SwaggerUIPlugin; + Err: SwaggerUIPlugin; + Filter: SwaggerUIPlugin; + Icons: SwaggerUIPlugin; + JSONSchema5: SwaggerUIPlugin; + JSONSchema5Samples: SwaggerUIPlugin; + JSONSchema202012: SwaggerUIPlugin; + JSONSchema202012Samples: SwaggerUIPlugin; + Layout: SwaggerUIPlugin; + Logs: SwaggerUIPlugin; + OpenAPI30: SwaggerUIPlugin; + OpenAPI31: SwaggerUIPlugin; + OnComplete: SwaggerUIPlugin; + RequestSnippets: SwaggerUIPlugin; + Spec: SwaggerUIPlugin; + SwaggerClient: SwaggerUIPlugin; + Util: SwaggerUIPlugin; + View: SwaggerUIPlugin; + ViewLegacy: SwaggerUIPlugin; + DownloadUrl: SwaggerUIPlugin; + SyntaxHighlighting: SwaggerUIPlugin; + Versions: SwaggerUIPlugin; + SafeRender: SwaggerUIPlugin; + }; } interface SwaggerUI { diff --git a/types/swagger-ui/package.json b/types/swagger-ui/package.json index 98c68b2941243e..cd80899065e659 100644 --- a/types/swagger-ui/package.json +++ b/types/swagger-ui/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/swagger-ui", - "version": "5.21.9999", + "version": "5.32.9999", "projects": [ "https://github.com/swagger-api/swagger-ui" ], diff --git a/types/swagger-ui/swagger-ui-tests.ts b/types/swagger-ui/swagger-ui-tests.ts index f9b5a4e16ece13..29556e84e68658 100644 --- a/types/swagger-ui/swagger-ui-tests.ts +++ b/types/swagger-ui/swagger-ui-tests.ts @@ -1,17 +1,17 @@ import SwaggerUI = require("swagger-ui"); -SwaggerUI({ +declare let bool: boolean; + +const swaggerUI = SwaggerUI({ configUrl: "http://www.example.com", dom_id: "Some id", domNode: document.getElementById("#eyedee"), spec: {}, url: "http://www.example.com", urls: [{ name: "123", url: "http://www.example.com" }], + queryConfigEnabled: true, layout: "Idontknow", - pluginsOptions: { - pluginLoadType: "legacy", - }, plugins: [ () => { return { @@ -40,13 +40,15 @@ SwaggerUI({ showExtensions: false, showCommonExtensions: false, tagsSorter: (a: any) => a, - useUnsafeMarkdown: false, onComplete: () => console.log("done"), - syntaxHighlight: { - activate: true, - theme: "agate", - }, + syntaxHighlight: bool + ? { + activate: true, + theme: "agate", + } + : false, tryItOutEnabled: false, + requestSnippetsEnabled: true, requestSnippets: { generators: { curl_bash: { @@ -78,16 +80,171 @@ SwaggerUI({ parameterMacro: (op, param) => 0, persistAuthorization: false, -}); -const swaggerUI = SwaggerUI({ - syntaxHighlight: false, + components: {}, + fn: {}, + configs: {}, + initialState: {}, + fileUploadMediaTypes: [ + "application/octet-stream", + "image/", + "audio/", + "video/", + ], + uncaughtExceptionHandler: bool ? null : console.error, }); +// $ExpectType Required +SwaggerUI.config.defaults; +// $ExpectType (target: SwaggerUIOptions, ...sources: SwaggerUIOptions[]) => SwaggerUIOptions +SwaggerUI.config.merge; +// (options: unknown) => SwaggerUIOptions +SwaggerUI.config.typeCast; + +// $ExpectType { typeCaster: (value: unknown, defaultValue?: Indexable | undefined) => Indexable | null | undefined; defaultValue?: Indexable | undefined; } +SwaggerUI.config.typeCastMappings.components; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: string | undefined) => string | null | undefined; defaultValue?: string | undefined; } +SwaggerUI.config.typeCastMappings.configUrl; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: any) => any; defaultValue?: any; } +SwaggerUI.config.typeCastMappings.configs; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: boolean | undefined) => boolean | null | undefined; defaultValue?: boolean | undefined; } +SwaggerUI.config.typeCastMappings.deepLinking; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: number | undefined) => number | null | undefined; defaultValue?: number | undefined; } +SwaggerUI.config.typeCastMappings.defaultModelExpandDepth; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: "example" | "model" | undefined) => "example" | "model" | null | undefined; defaultValue?: "example" | "model" | undefined; } +SwaggerUI.config.typeCastMappings.defaultModelRendering; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: number | undefined) => number | null | undefined; defaultValue?: number | undefined; } +SwaggerUI.config.typeCastMappings.defaultModelsExpandDepth; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: boolean | undefined) => boolean | null | undefined; defaultValue?: boolean | undefined; } +SwaggerUI.config.typeCastMappings.displayOperationId; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: boolean | undefined) => boolean | null | undefined; defaultValue?: boolean | undefined; } +SwaggerUI.config.typeCastMappings.displayRequestDuration; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: "list" | "full" | "none" | undefined) => "list" | "full" | "none" | null | undefined; defaultValue?: "list" | "full" | "none" | undefined; } +SwaggerUI.config.typeCastMappings.docExpansion; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: HTMLElement | null | undefined) => HTMLElement | null | undefined; defaultValue?: HTMLElement | null | undefined; } +SwaggerUI.config.typeCastMappings.domNode; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: string | undefined) => string | null | undefined; defaultValue?: string | undefined; } +SwaggerUI.config.typeCastMappings.dom_id; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: string[] | undefined) => string[] | null | undefined; defaultValue?: string[] | undefined; } +SwaggerUI.config.typeCastMappings.fileUploadMediaTypes; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: string | boolean | undefined) => string | boolean | null | undefined; defaultValue?: string | boolean | undefined; } +SwaggerUI.config.typeCastMappings.filter; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: Indexable | undefined) => Indexable | null | undefined; defaultValue?: Indexable | undefined; } +SwaggerUI.config.typeCastMappings.fn; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: any) => any; defaultValue?: any; } +SwaggerUI.config.typeCastMappings.initialState; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: string | undefined) => string | null | undefined; defaultValue?: string | undefined; } +SwaggerUI.config.typeCastMappings.layout; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: number | undefined) => number | null | undefined; defaultValue?: number | undefined; } +SwaggerUI.config.typeCastMappings.maxDisplayedTags; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: ((propName: Readonly) => any) | undefined) => ((propName: Readonly) => any) | null | undefined; defaultValue?: ((propName: Readonly) => any) | undefined; } +SwaggerUI.config.typeCastMappings.modelPropertyMacro; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: string | undefined) => string | null | undefined; defaultValue?: string | undefined; } +SwaggerUI.config.typeCastMappings.oauth2RedirectUrl; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: (() => any) | undefined) => (() => any) | null | undefined; defaultValue?: (() => any) | undefined; } +SwaggerUI.config.typeCastMappings.onComplete; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: SorterLike | undefined) => SorterLike | null | undefined; defaultValue?: SorterLike | undefined; } +SwaggerUI.config.typeCastMappings.operationsSorter; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: ((operation: Readonly, parameter: Readonly) => any) | undefined) => ((operation: Readonly, parameter: Readonly) => any) | null | undefined; defaultValue?: ((operation: Readonly, parameter: Readonly) => any) | undefined; } +SwaggerUI.config.typeCastMappings.parameterMacro; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: boolean | undefined) => boolean | null | undefined; defaultValue?: boolean | undefined; } +SwaggerUI.config.typeCastMappings.persistAuthorization; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: SwaggerUIPlugin[] | undefined) => SwaggerUIPlugin[] | null | undefined; defaultValue?: SwaggerUIPlugin[] | undefined; } +SwaggerUI.config.typeCastMappings.plugins; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: SwaggerUIPlugin[] | SwaggerUIPreset[] | undefined) => SwaggerUIPlugin[] | SwaggerUIPreset[] | null | undefined; defaultValue?: SwaggerUIPlugin[] | SwaggerUIPreset[] | undefined; } +SwaggerUI.config.typeCastMappings.presets; +// @ts-expect-error +SwaggerUI.config.typeCastMappings.queryConfigEnabled; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: ((a: Request) => Request | Promise) | undefined) => ((a: Request) => Request | Promise) | null | undefined; defaultValue?: ((a: Request) => Request | Promise) | undefined; } +SwaggerUI.config.typeCastMappings.requestInterceptor; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: { generators?: { [genName: string]: { title: string; syntax: string; }; } | undefined; defaultExpanded?: boolean | undefined; languagesMask?: string[] | undefined; } | undefined) => { generators?: { [genName: string]: { title: string; syntax: string; }; } | undefined; defaultExpanded?: boolean | undefined; languagesMask?: string[] | undefined; } | null | undefined; defaultValue?: { generators?: { [genName: string]: { title: string; syntax: string; }; } | undefined; defaultExpanded?: boolean | undefined; languagesMask?: string[] | undefined; } | undefined; } +SwaggerUI.config.typeCastMappings.requestSnippets; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: boolean | undefined) => boolean | null | undefined; defaultValue?: boolean | undefined; } +SwaggerUI.config.typeCastMappings.requestSnippetsEnabled; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: ((a: Response) => Response | Promise) | undefined) => ((a: Response) => Response | Promise) | null | undefined; defaultValue?: ((a: Response) => Response | Promise) | undefined; } +SwaggerUI.config.typeCastMappings.responseInterceptor; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: boolean | undefined) => boolean | null | undefined; defaultValue?: boolean | undefined; } +SwaggerUI.config.typeCastMappings.showCommonExtensions; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: boolean | undefined) => boolean | null | undefined; defaultValue?: boolean | undefined; } +SwaggerUI.config.typeCastMappings.showExtensions; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: boolean | undefined) => boolean | null | undefined; defaultValue?: boolean | undefined; } +SwaggerUI.config.typeCastMappings.showMutatedRequest; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: { [propName: string]: any } | undefined) => { [propName: string]: any } | null | undefined; defaultValue?: { [propName: string]: any } | undefined; } +SwaggerUI.config.typeCastMappings.spec; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: SupportedHTTPMethods[] | undefined) => SupportedHTTPMethods[] | null | undefined; defaultValue?: SupportedHTTPMethods[] | undefined; } +SwaggerUI.config.typeCastMappings.supportedSubmitMethods; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: false | { activate?: boolean | undefined; theme?: "agate" | "arta" | "idea" | "monokai" | "nord" | "obsidian" | "tomorrow-night" | undefined; } | undefined) => false | { activate?: boolean | undefined; theme?: "agate" | "arta" | "idea" | "monokai" | "nord" | "obsidian" | "tomorrow-night" | undefined; } | null | undefined; defaultValue?: false | { activate?: boolean | undefined; theme?: "agate" | "arta" | "idea" | "monokai" | "nord" | "obsidian" | "tomorrow-night" | undefined; } | undefined; } +SwaggerUI.config.typeCastMappings.syntaxHighlight; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: SorterLike | undefined) => SorterLike | null | undefined; defaultValue?: SorterLike | undefined; } +SwaggerUI.config.typeCastMappings.tagsSorter; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: boolean | undefined) => boolean | null | undefined; defaultValue?: boolean | undefined; } +SwaggerUI.config.typeCastMappings.tryItOutEnabled; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: ((error: unknown) => unknown) | null | undefined) => ((error: unknown) => unknown) | null | undefined; defaultValue?: ((error: unknown) => unknown) | null | undefined; } +SwaggerUI.config.typeCastMappings.uncaughtExceptionHandler; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: string | undefined) => string | null | undefined; defaultValue?: string | undefined; } +SwaggerUI.config.typeCastMappings.url; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: { url: string; name: string; }[] | undefined) => { url: string; name: string; }[] | null | undefined; defaultValue?: { url: string; name: string; }[] | undefined; } +SwaggerUI.config.typeCastMappings.urls; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: string | undefined) => string | null | undefined; defaultValue?: string | undefined; } +SwaggerUI.config.typeCastMappings.validatorUrl; +// $ExpectType { typeCaster: (value: unknown, defaultValue?: boolean | undefined) => boolean | null | undefined; defaultValue?: boolean | undefined; } +SwaggerUI.config.typeCastMappings.withCredentials; + // $ExpectType SwaggerUIPreset -const _basePreset = SwaggerUI.presets.base; +SwaggerUI.presets.base; // $ExpectType SwaggerUIPreset -const _apisPreset = SwaggerUI.presets.apis; +SwaggerUI.presets.apis; + +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.Auth; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.Configs; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.DeepLining; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.Err; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.Filter; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.Icons; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.JSONSchema5; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.JSONSchema5Samples; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.JSONSchema202012; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.JSONSchema202012Samples; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.Layout; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.Logs; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.OpenAPI30; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.OpenAPI31; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.OnComplete; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.RequestSnippets; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.Spec; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.SwaggerClient; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.Util; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.View; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.ViewLegacy; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.DownloadUrl; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.SyntaxHighlighting; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.Versions; +// $ExpectType SwaggerUIPlugin +SwaggerUI.plugins.SafeRender; swaggerUI.initOAuth({}); swaggerUI.preauthorizeApiKey("abc", "dec"); diff --git a/types/xrm/index.d.ts b/types/xrm/index.d.ts index eab6cccf83ffec..408638bc94066e 100644 --- a/types/xrm/index.d.ts +++ b/types/xrm/index.d.ts @@ -5336,7 +5336,7 @@ declare namespace Xrm { /** * The error code. If you just set errorCode, the message for the error code is automatically * retrieved from the server and displayed in the error dialog. - * If you specify an invalid errorCode value, an error dialog with a default error message is displyed. + * If you specify an invalid errorCode value, an error dialog with a default error message is displayed. */ errorCode?: number | undefined; /**