@corsa-bind/napi 0.2.1 → 0.3.0
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/dist/index.d.mts +2 -2
- package/dist/types.d.mts +56 -1
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiClientOptions, ApiMode, ConfigResponse, FileChangeSummary, FileChanges, InitializeResponse, ProjectResponse, TypeResponse, TypeTextKind, UnsafeTypeFlowInput, UpdateSnapshotParams, UpdateSnapshotResponse, VirtualChange, VirtualDocumentState } from "./types.mjs";
|
|
1
|
+
import { ApiClientOptions, ApiMode, CapabilitiesResponse, ConfigResponse, DiagnosticsCapabilities, DocumentIdentifier, EditorCapabilities, FileChangeSummary, FileChanges, FileDiagnosticsResponse, InitializeResponse, OverlayCapabilities, OverlayChanges, OverlayUpdate, ProjectDiagnosticsResponse, ProjectResponse, RuntimeCapabilities, SnapshotDiagnosticsResponse, TypeResponse, TypeTextKind, UnsafeTypeFlowInput, UpdateSnapshotParams, UpdateSnapshotResponse, VirtualChange, VirtualDocumentState } from "./types.mjs";
|
|
2
2
|
import * as ___index_js0 from "../index.js";
|
|
3
3
|
|
|
4
4
|
//#region index.d.ts
|
|
@@ -72,5 +72,5 @@ declare class TsgoDistributedOrchestrator {
|
|
|
72
72
|
}
|
|
73
73
|
declare const version: typeof ___index_js0.version;
|
|
74
74
|
//#endregion
|
|
75
|
-
export { ApiClientOptions, ApiMode, ConfigResponse, FileChangeSummary, FileChanges, InitializeResponse, ProjectResponse, TsgoApiClient, TsgoDistributedOrchestrator, TsgoVirtualDocument, TypeResponse, TypeTextKind, UnsafeTypeFlowInput, UpdateSnapshotParams, UpdateSnapshotResponse, Utils, VirtualChange, VirtualDocumentState, classifyTypeText, binding as default, isAnyLikeTypeTexts, isArrayLikeTypeTexts, isBigIntLikeTypeTexts, isErrorLikeTypeTexts, isNumberLikeTypeTexts, isPromiseLikeTypeTexts, isStringLikeTypeTexts, isUnknownLikeTypeTexts, isUnsafeAssignment, isUnsafeReturn, splitTopLevelTypeText, splitTypeText, version };
|
|
75
|
+
export { ApiClientOptions, ApiMode, CapabilitiesResponse, ConfigResponse, DiagnosticsCapabilities, DocumentIdentifier, EditorCapabilities, FileChangeSummary, FileChanges, FileDiagnosticsResponse, InitializeResponse, OverlayCapabilities, OverlayChanges, OverlayUpdate, ProjectDiagnosticsResponse, ProjectResponse, RuntimeCapabilities, SnapshotDiagnosticsResponse, TsgoApiClient, TsgoDistributedOrchestrator, TsgoVirtualDocument, TypeResponse, TypeTextKind, UnsafeTypeFlowInput, UpdateSnapshotParams, UpdateSnapshotResponse, Utils, VirtualChange, VirtualDocumentState, classifyTypeText, binding as default, isAnyLikeTypeTexts, isArrayLikeTypeTexts, isBigIntLikeTypeTexts, isErrorLikeTypeTexts, isNumberLikeTypeTexts, isPromiseLikeTypeTexts, isStringLikeTypeTexts, isUnknownLikeTypeTexts, isUnsafeAssignment, isUnsafeReturn, splitTopLevelTypeText, splitTypeText, version };
|
|
76
76
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/types.d.mts
CHANGED
|
@@ -23,6 +23,9 @@ interface ProjectResponse {
|
|
|
23
23
|
compilerOptions: unknown;
|
|
24
24
|
rootFiles: string[];
|
|
25
25
|
}
|
|
26
|
+
type DocumentIdentifier = string | {
|
|
27
|
+
uri: string;
|
|
28
|
+
};
|
|
26
29
|
interface FileChangeSummary {
|
|
27
30
|
changed?: string[];
|
|
28
31
|
created?: string[];
|
|
@@ -34,6 +37,7 @@ type FileChanges = FileChangeSummary | {
|
|
|
34
37
|
interface UpdateSnapshotParams {
|
|
35
38
|
openProject?: string;
|
|
36
39
|
fileChanges?: FileChanges;
|
|
40
|
+
overlayChanges?: OverlayChanges;
|
|
37
41
|
}
|
|
38
42
|
interface UpdateSnapshotResponse {
|
|
39
43
|
snapshot: string;
|
|
@@ -48,6 +52,57 @@ interface TypeResponse {
|
|
|
48
52
|
symbol?: string;
|
|
49
53
|
texts: string[];
|
|
50
54
|
}
|
|
55
|
+
interface OverlayUpdate {
|
|
56
|
+
document: DocumentIdentifier;
|
|
57
|
+
text: string;
|
|
58
|
+
version?: number;
|
|
59
|
+
languageId?: string;
|
|
60
|
+
}
|
|
61
|
+
interface OverlayChanges {
|
|
62
|
+
upsert?: OverlayUpdate[];
|
|
63
|
+
delete?: DocumentIdentifier[];
|
|
64
|
+
}
|
|
65
|
+
interface RuntimeCapabilities {
|
|
66
|
+
kind?: string;
|
|
67
|
+
executable?: string;
|
|
68
|
+
transport?: string;
|
|
69
|
+
capabilityEndpoint: boolean;
|
|
70
|
+
}
|
|
71
|
+
interface OverlayCapabilities {
|
|
72
|
+
updateSnapshotOverlayChanges: boolean;
|
|
73
|
+
}
|
|
74
|
+
interface DiagnosticsCapabilities {
|
|
75
|
+
snapshot: boolean;
|
|
76
|
+
project: boolean;
|
|
77
|
+
file: boolean;
|
|
78
|
+
}
|
|
79
|
+
interface EditorCapabilities {
|
|
80
|
+
hover: boolean;
|
|
81
|
+
definition: boolean;
|
|
82
|
+
references: boolean;
|
|
83
|
+
rename: boolean;
|
|
84
|
+
completion: boolean;
|
|
85
|
+
}
|
|
86
|
+
interface CapabilitiesResponse {
|
|
87
|
+
runtime: RuntimeCapabilities;
|
|
88
|
+
overlay: OverlayCapabilities;
|
|
89
|
+
diagnostics: DiagnosticsCapabilities;
|
|
90
|
+
editor: EditorCapabilities;
|
|
91
|
+
}
|
|
92
|
+
interface FileDiagnosticsResponse {
|
|
93
|
+
file: DocumentIdentifier;
|
|
94
|
+
syntactic: unknown[];
|
|
95
|
+
semantic: unknown[];
|
|
96
|
+
suggestion: unknown[];
|
|
97
|
+
}
|
|
98
|
+
interface ProjectDiagnosticsResponse {
|
|
99
|
+
project: string;
|
|
100
|
+
files: FileDiagnosticsResponse[];
|
|
101
|
+
}
|
|
102
|
+
interface SnapshotDiagnosticsResponse {
|
|
103
|
+
snapshot: string;
|
|
104
|
+
projects: ProjectDiagnosticsResponse[];
|
|
105
|
+
}
|
|
51
106
|
interface UnsafeTypeFlowInput {
|
|
52
107
|
sourceTypeTexts: readonly string[];
|
|
53
108
|
targetTypeTexts?: readonly string[];
|
|
@@ -74,5 +129,5 @@ interface VirtualDocumentState {
|
|
|
74
129
|
text: string;
|
|
75
130
|
}
|
|
76
131
|
//#endregion
|
|
77
|
-
export { ApiClientOptions, ApiMode, ConfigResponse, FileChangeSummary, FileChanges, InitializeResponse, ProjectResponse, TypeResponse, TypeTextKind, UnsafeTypeFlowInput, UpdateSnapshotParams, UpdateSnapshotResponse, VirtualChange, VirtualDocumentState };
|
|
132
|
+
export { ApiClientOptions, ApiMode, CapabilitiesResponse, ConfigResponse, DiagnosticsCapabilities, DocumentIdentifier, EditorCapabilities, FileChangeSummary, FileChanges, FileDiagnosticsResponse, InitializeResponse, OverlayCapabilities, OverlayChanges, OverlayUpdate, ProjectDiagnosticsResponse, ProjectResponse, RuntimeCapabilities, SnapshotDiagnosticsResponse, TypeResponse, TypeTextKind, UnsafeTypeFlowInput, UpdateSnapshotParams, UpdateSnapshotResponse, VirtualChange, VirtualDocumentState };
|
|
78
133
|
//# sourceMappingURL=types.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corsa-bind/napi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Native Node.js bindings for corsa and typescript-go stdio workflows",
|
|
5
5
|
"homepage": "https://github.com/ubugeeei/corsa-bind/tree/main/src/bindings/nodejs/corsa_node",
|
|
6
6
|
"bugs": {
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"node": ">=22"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@corsa-bind/napi-win32-x64-msvc": "0.
|
|
50
|
-
"@corsa-bind/napi-darwin-x64": "0.
|
|
51
|
-
"@corsa-bind/napi-linux-x64-gnu": "0.
|
|
52
|
-
"@corsa-bind/napi-darwin-arm64": "0.
|
|
53
|
-
"@corsa-bind/napi-win32-arm64-msvc": "0.
|
|
54
|
-
"@corsa-bind/napi-linux-x64-musl": "0.
|
|
55
|
-
"@corsa-bind/napi-linux-arm64-gnu": "0.
|
|
56
|
-
"@corsa-bind/napi-linux-arm64-musl": "0.
|
|
49
|
+
"@corsa-bind/napi-win32-x64-msvc": "0.3.0",
|
|
50
|
+
"@corsa-bind/napi-darwin-x64": "0.3.0",
|
|
51
|
+
"@corsa-bind/napi-linux-x64-gnu": "0.3.0",
|
|
52
|
+
"@corsa-bind/napi-darwin-arm64": "0.3.0",
|
|
53
|
+
"@corsa-bind/napi-win32-arm64-msvc": "0.3.0",
|
|
54
|
+
"@corsa-bind/napi-linux-x64-musl": "0.3.0",
|
|
55
|
+
"@corsa-bind/napi-linux-arm64-gnu": "0.3.0",
|
|
56
|
+
"@corsa-bind/napi-linux-arm64-musl": "0.3.0"
|
|
57
57
|
}
|
|
58
58
|
}
|