@ttsc/wasm 0.14.0-dev.20260529.1 → 0.14.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.
@@ -1,7 +1,7 @@
1
1
  import type { ITtscBuildOpts } from "./ITtscBuildOpts";
2
+ import type { ITtscFileQuery } from "./ITtscFileQuery";
2
3
  import type { ITtscPluginOpts } from "./ITtscPluginOpts";
3
4
  import type { ITtscPositionQuery } from "./ITtscPositionQuery";
4
- import type { ITtscFileQuery } from "./ITtscFileQuery";
5
5
  import type { ITtscResult } from "./ITtscResult";
6
6
  import type { ITtscSnapshotHandle } from "./ITtscSnapshotHandle";
7
7
  import type { ITtscVersion } from "./ITtscVersion";
@@ -38,8 +38,8 @@ export interface ITtscApi {
38
38
 
39
39
  /**
40
40
  * Dispatch a registered plugin's subcommand. Returns the captured stdout /
41
- * stderr (the same streams the native sidecar binary would write to)
42
- * together with the exit code.
41
+ * stderr (the same streams the native sidecar binary would write to) together
42
+ * with the exit code.
43
43
  */
44
44
  plugin(opts: ITtscPluginOpts): Promise<ITtscResult>;
45
45
 
@@ -76,8 +76,8 @@ export interface ITtscApi {
76
76
  getSourceFileText(opts: ITtscFileQuery): Promise<ITtscResult>;
77
77
 
78
78
  /**
79
- * Diagnostics from the snapshot's program. Pass `file` to filter to a
80
- * single project-relative path.
79
+ * Diagnostics from the snapshot's program. Pass `file` to filter to a single
80
+ * project-relative path.
81
81
  */
82
82
  getDiagnostics(
83
83
  opts: ITtscSnapshotHandle & { file?: string },
@@ -3,8 +3,8 @@ import type { ITtscDiagnostic } from "./ITtscDiagnostic";
3
3
  /**
4
4
  * Structured payload inside `ITtscResult.result` for `build` and `check`.
5
5
  *
6
- * `output` maps emit-destination paths (relative to `cwd`) to file contents.
7
- * It is empty when `check` is called without emit.
6
+ * `output` maps emit-destination paths (relative to `cwd`) to file contents. It
7
+ * is empty when `check` is called without emit.
8
8
  */
9
9
  export interface ITtscCompileResult {
10
10
  diagnostics?: ITtscDiagnostic[];
@@ -1,6 +1,9 @@
1
1
  import type { ITtscFileQuery } from "./ITtscFileQuery";
2
2
 
3
- /** Request shape for `getNodeAtPosition`, `getTypeAtPosition`, `getSymbolAtPosition`. */
3
+ /**
4
+ * Request shape for `getNodeAtPosition`, `getTypeAtPosition`,
5
+ * `getSymbolAtPosition`.
6
+ */
4
7
  export interface ITtscPositionQuery extends ITtscFileQuery {
5
8
  /**
6
9
  * Byte offset into the file's source text. JS callers with a UTF-16
@@ -4,8 +4,8 @@ import type { ITtscDiagnostic } from "./ITtscDiagnostic";
4
4
  * Structured payload inside `ITtscResult.result` for `transform`.
5
5
  *
6
6
  * `typescript` maps source file paths (relative to `cwd`) to their
7
- * post-transform TypeScript text — useful for playgrounds that want to show
8
- * the rewritten source before it is emitted.
7
+ * post-transform TypeScript text — useful for playgrounds that want to show the
8
+ * rewritten source before it is emitted.
9
9
  */
10
10
  export interface ITtscTransformResult {
11
11
  diagnostics?: ITtscDiagnostic[];
@@ -136,9 +136,9 @@ export interface IWasmExecFS {
136
136
  ): void;
137
137
  /**
138
138
  * `pipe2` is what Go's wasm `os.Pipe()` calls. Returns two fds: a read end
139
- * and a write end. The host's stdout/stderr capture currently uses MemFS
140
- * temp files, but this keeps direct pipe callers compatible with the wasm
141
- * fs surface.
139
+ * and a write end. The host's stdout/stderr capture currently uses MemFS temp
140
+ * files, but this keeps direct pipe callers compatible with the wasm fs
141
+ * surface.
142
142
  */
143
143
  pipe2(
144
144
  flags: number,