@redocly/openapi-language-server 0.3.8 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +6 -12
- package/lib/index.js +47 -47
- package/package.json +4 -4
package/lib/index.d.ts
CHANGED
|
@@ -351,20 +351,14 @@ declare module '@redocly/openapi-language-server/server/hints' {
|
|
|
351
351
|
|
|
352
352
|
}
|
|
353
353
|
declare module '@redocly/openapi-language-server/server/openapi-config' {
|
|
354
|
-
import { Config
|
|
355
|
-
import type { Document } from '@redocly/openapi-core';
|
|
354
|
+
import { type Config, CONFIG_FILE_NAMES } from '@redocly/openapi-core';
|
|
356
355
|
import type { DocumentUri } from 'vscode-languageserver/node';
|
|
357
356
|
export { CONFIG_FILE_NAMES };
|
|
358
|
-
export
|
|
359
|
-
|
|
360
|
-
configPath?: string;
|
|
361
|
-
rootConfigDocument?: Document;
|
|
362
|
-
};
|
|
363
|
-
export function loadOpenAPIConfig(uri?: string): Promise<RedoclyConfig>;
|
|
364
|
-
export function getConfigData(): Promise<ConfigData>;
|
|
357
|
+
export function loadOpenAPIConfig(uri?: string): Promise<Config>;
|
|
358
|
+
export function getConfigData(): Promise<Config>;
|
|
365
359
|
export function updateOpenAPIConfigByURI(uri: DocumentUri | null, opts?: {
|
|
366
360
|
createEventHandleLoadConfigError?: (message: string) => void;
|
|
367
|
-
}): Promise<
|
|
361
|
+
}): Promise<Config>;
|
|
368
362
|
export function isConfigFile(uri: string): boolean;
|
|
369
363
|
export function isRootConfigFile(uri: string): boolean;
|
|
370
364
|
|
|
@@ -573,14 +567,14 @@ declare module '@redocly/openapi-language-server/server/types/context-core' {
|
|
|
573
567
|
}
|
|
574
568
|
declare module '@redocly/openapi-language-server/server/utils' {
|
|
575
569
|
import { YAMLNode } from '@redocly/yaml-language-server-parser';
|
|
576
|
-
import { type
|
|
570
|
+
import { type ResolvedConfig } from '@redocly/openapi-core';
|
|
577
571
|
import { type TextDocument } from 'vscode-languageserver-textdocument';
|
|
578
572
|
type Func<T> = (textDocument: TextDocument) => T | Promise<T>;
|
|
579
573
|
export function debounceDocument<T>(func: Func<T>, wait?: number, immediate?: boolean): Func<Promise<T>>;
|
|
580
574
|
export function removeCirculars(object: any): any;
|
|
581
575
|
export function isRefField(field: string): boolean;
|
|
582
576
|
export function getRootFilePath(apiRoot: string, rootFolderURI: string): Promise<string>;
|
|
583
|
-
export function getCurrentApiAlias(apis:
|
|
577
|
+
export function getCurrentApiAlias(apis: ResolvedConfig['apis'], rootFilePath: string, rootFolderURI: string): Promise<string | undefined>;
|
|
584
578
|
export function isString<T>(value: T): boolean;
|
|
585
579
|
export function isFunction<T>(f: T): boolean;
|
|
586
580
|
export function isPromise<T>(value: T): boolean;
|