@ttsc/wasm 0.15.11 → 0.16.1

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/ttsc.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttsc/wasm",
3
- "version": "0.15.11",
3
+ "version": "0.16.1",
4
4
  "description": "Build in-browser ttsc playgrounds. Compose ttsc + typescript-go with your own plugins via the Go host helper.",
5
5
  "main": "lib/src/index.js",
6
6
  "types": "lib/src/index.d.ts",
@@ -38,12 +38,12 @@
38
38
  "homepage": "https://ttsc.dev",
39
39
  "devDependencies": {
40
40
  "@types/node": "^25.3.0",
41
- "@typescript/native-preview": "7.0.0-dev.20260618.1",
42
- "rimraf": "^6.1.2"
41
+ "rimraf": "^6.1.2",
42
+ "typescript": "7.0.1-rc"
43
43
  },
44
44
  "scripts": {
45
- "build": "node build/build-wasm.cjs && rimraf lib && tsgo -p .",
45
+ "build": "node build/build-wasm.cjs && rimraf lib && tsc -p .",
46
46
  "build:wasm": "node build/build-wasm.cjs",
47
- "build:ts": "rimraf lib && tsgo -p ."
47
+ "build:ts": "rimraf lib && tsc -p ."
48
48
  }
49
49
  }
@@ -211,6 +211,24 @@ func Checker_getBaseTypes(recv *innerchecker.Checker, t *innerchecker.Type) []*i
211
211
  return checkerGetBaseTypes(recv, t)
212
212
  }
213
213
 
214
+ //go:linkname checkerGetDeclaredTypeOfSymbol github.com/microsoft/typescript-go/internal/checker.(*Checker).getDeclaredTypeOfSymbol
215
+ func checkerGetDeclaredTypeOfSymbol(recv *innerchecker.Checker, symbol *innerast.Symbol) *innerchecker.Type
216
+
217
+ // Checker_getDeclaredTypeOfSymbol returns the declared (instance) type of a
218
+ // class or interface symbol. Unlike Checker_getTypeOfSymbol — which yields the
219
+ // constructor (static) type of a class symbol — the result IS a
220
+ // ClassOrInterface type and is therefore safe to feed back into
221
+ // Checker_getBaseTypes. This lets a consumer resolve a generic base's symbol to
222
+ // its declared type and keep walking the base chain past the generic boundary
223
+ // where getBaseTypes would otherwise dead-end (a Reference/Anonymous type has a
224
+ // nil AsInterfaceType()). Returns nil if recv or symbol is nil.
225
+ func Checker_getDeclaredTypeOfSymbol(recv *innerchecker.Checker, symbol *innerast.Symbol) *innerchecker.Type {
226
+ if recv == nil || symbol == nil {
227
+ return nil
228
+ }
229
+ return checkerGetDeclaredTypeOfSymbol(recv, symbol)
230
+ }
231
+
214
232
  //go:linkname checkerGetMinArgumentCount github.com/microsoft/typescript-go/internal/checker.(*Checker).getMinArgumentCount
215
233
  func checkerGetMinArgumentCount(recv *innerchecker.Checker, signature *innerchecker.Signature) int
216
234
 
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // Minimal shim of tsgo's internal/lsp package. Hand-written instead of
4
4
  // generated so the surface stays narrow for custom in-process host
5
- // experiments. The shipped ttscserver wraps `tsgo --lsp --stdio` as an
5
+ // experiments. The shipped ttscserver wraps `tsc --lsp --stdio` as an
6
6
  // external process and does not import this package. The marker on the
7
7
  // first line tells gen_shims to skip this file.
8
8
  package lsp