typescript-native-bridge 0.0.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.
Files changed (488) hide show
  1. package/LICENSE +55 -0
  2. package/NOTICE +18 -0
  3. package/README.md +448 -0
  4. package/bin/tsc +2 -0
  5. package/bin/tsserver +2 -0
  6. package/lib/.gitattributes +1 -0
  7. package/lib/_tsc.js +136979 -0
  8. package/lib/_tsserver.js +659 -0
  9. package/lib/_typingsInstaller.js +222 -0
  10. package/lib/cs/diagnosticMessages.generated.json +2129 -0
  11. package/lib/de/diagnosticMessages.generated.json +2125 -0
  12. package/lib/es/diagnosticMessages.generated.json +2129 -0
  13. package/lib/fr/diagnosticMessages.generated.json +2129 -0
  14. package/lib/it/diagnosticMessages.generated.json +2125 -0
  15. package/lib/ja/diagnosticMessages.generated.json +2129 -0
  16. package/lib/ko/diagnosticMessages.generated.json +2129 -0
  17. package/lib/lib.d.ts +20 -0
  18. package/lib/lib.decorators.d.ts +382 -0
  19. package/lib/lib.decorators.legacy.d.ts +20 -0
  20. package/lib/lib.dom.asynciterable.d.ts +18 -0
  21. package/lib/lib.dom.d.ts +45125 -0
  22. package/lib/lib.dom.iterable.d.ts +18 -0
  23. package/lib/lib.es2015.collection.d.ts +159 -0
  24. package/lib/lib.es2015.core.d.ts +595 -0
  25. package/lib/lib.es2015.d.ts +26 -0
  26. package/lib/lib.es2015.generator.d.ts +75 -0
  27. package/lib/lib.es2015.iterable.d.ts +603 -0
  28. package/lib/lib.es2015.promise.d.ts +79 -0
  29. package/lib/lib.es2015.proxy.d.ts +126 -0
  30. package/lib/lib.es2015.reflect.d.ts +142 -0
  31. package/lib/lib.es2015.symbol.d.ts +44 -0
  32. package/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
  33. package/lib/lib.es2016.array.include.d.ts +114 -0
  34. package/lib/lib.es2016.d.ts +19 -0
  35. package/lib/lib.es2016.full.d.ts +21 -0
  36. package/lib/lib.es2016.intl.d.ts +29 -0
  37. package/lib/lib.es2017.arraybuffer.d.ts +19 -0
  38. package/lib/lib.es2017.d.ts +24 -0
  39. package/lib/lib.es2017.date.d.ts +29 -0
  40. package/lib/lib.es2017.full.d.ts +21 -0
  41. package/lib/lib.es2017.intl.d.ts +42 -0
  42. package/lib/lib.es2017.object.d.ts +47 -0
  43. package/lib/lib.es2017.sharedmemory.d.ts +133 -0
  44. package/lib/lib.es2017.string.d.ts +47 -0
  45. package/lib/lib.es2017.typedarrays.d.ts +51 -0
  46. package/lib/lib.es2018.asyncgenerator.d.ts +75 -0
  47. package/lib/lib.es2018.asynciterable.d.ts +51 -0
  48. package/lib/lib.es2018.d.ts +22 -0
  49. package/lib/lib.es2018.full.d.ts +22 -0
  50. package/lib/lib.es2018.intl.d.ts +81 -0
  51. package/lib/lib.es2018.promise.d.ts +28 -0
  52. package/lib/lib.es2018.regexp.d.ts +35 -0
  53. package/lib/lib.es2019.array.d.ts +77 -0
  54. package/lib/lib.es2019.d.ts +22 -0
  55. package/lib/lib.es2019.full.d.ts +22 -0
  56. package/lib/lib.es2019.intl.d.ts +21 -0
  57. package/lib/lib.es2019.object.d.ts +31 -0
  58. package/lib/lib.es2019.string.d.ts +35 -0
  59. package/lib/lib.es2019.symbol.d.ts +22 -0
  60. package/lib/lib.es2020.bigint.d.ts +763 -0
  61. package/lib/lib.es2020.d.ts +25 -0
  62. package/lib/lib.es2020.date.d.ts +40 -0
  63. package/lib/lib.es2020.full.d.ts +22 -0
  64. package/lib/lib.es2020.intl.d.ts +472 -0
  65. package/lib/lib.es2020.number.d.ts +26 -0
  66. package/lib/lib.es2020.promise.d.ts +45 -0
  67. package/lib/lib.es2020.sharedmemory.d.ts +97 -0
  68. package/lib/lib.es2020.string.d.ts +42 -0
  69. package/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
  70. package/lib/lib.es2021.d.ts +21 -0
  71. package/lib/lib.es2021.full.d.ts +22 -0
  72. package/lib/lib.es2021.intl.d.ts +164 -0
  73. package/lib/lib.es2021.promise.d.ts +46 -0
  74. package/lib/lib.es2021.string.d.ts +31 -0
  75. package/lib/lib.es2021.weakref.d.ts +76 -0
  76. package/lib/lib.es2022.array.d.ts +119 -0
  77. package/lib/lib.es2022.d.ts +23 -0
  78. package/lib/lib.es2022.error.d.ts +73 -0
  79. package/lib/lib.es2022.full.d.ts +22 -0
  80. package/lib/lib.es2022.intl.d.ts +143 -0
  81. package/lib/lib.es2022.object.d.ts +24 -0
  82. package/lib/lib.es2022.regexp.d.ts +37 -0
  83. package/lib/lib.es2022.string.d.ts +23 -0
  84. package/lib/lib.es2023.array.d.ts +922 -0
  85. package/lib/lib.es2023.collection.d.ts +19 -0
  86. package/lib/lib.es2023.d.ts +20 -0
  87. package/lib/lib.es2023.full.d.ts +22 -0
  88. package/lib/lib.es2023.intl.d.ts +62 -0
  89. package/lib/lib.es2024.arraybuffer.d.ts +63 -0
  90. package/lib/lib.es2024.collection.d.ts +27 -0
  91. package/lib/lib.es2024.d.ts +24 -0
  92. package/lib/lib.es2024.full.d.ts +22 -0
  93. package/lib/lib.es2024.object.d.ts +27 -0
  94. package/lib/lib.es2024.promise.d.ts +33 -0
  95. package/lib/lib.es2024.regexp.d.ts +23 -0
  96. package/lib/lib.es2024.sharedmemory.d.ts +66 -0
  97. package/lib/lib.es2024.string.d.ts +27 -0
  98. package/lib/lib.es2025.collection.d.ts +94 -0
  99. package/lib/lib.es2025.d.ts +23 -0
  100. package/lib/lib.es2025.float16.d.ts +443 -0
  101. package/lib/lib.es2025.full.d.ts +22 -0
  102. package/lib/lib.es2025.intl.d.ts +200 -0
  103. package/lib/lib.es2025.iterator.d.ts +146 -0
  104. package/lib/lib.es2025.promise.d.ts +32 -0
  105. package/lib/lib.es2025.regexp.d.ts +30 -0
  106. package/lib/lib.es5.d.ts +4599 -0
  107. package/lib/lib.es6.d.ts +21 -0
  108. package/lib/lib.esnext.array.d.ts +33 -0
  109. package/lib/lib.esnext.collection.d.ts +47 -0
  110. package/lib/lib.esnext.d.ts +27 -0
  111. package/lib/lib.esnext.date.d.ts +21 -0
  112. package/lib/lib.esnext.decorators.d.ts +26 -0
  113. package/lib/lib.esnext.disposable.d.ts +191 -0
  114. package/lib/lib.esnext.error.d.ts +22 -0
  115. package/lib/lib.esnext.full.d.ts +22 -0
  116. package/lib/lib.esnext.intl.d.ts +107 -0
  117. package/lib/lib.esnext.sharedmemory.d.ts +23 -0
  118. package/lib/lib.esnext.temporal.d.ts +485 -0
  119. package/lib/lib.esnext.typedarrays.d.ts +90 -0
  120. package/lib/lib.scripthost.d.ts +320 -0
  121. package/lib/lib.webworker.asynciterable.d.ts +18 -0
  122. package/lib/lib.webworker.d.ts +15606 -0
  123. package/lib/lib.webworker.importscripts.d.ts +21 -0
  124. package/lib/lib.webworker.iterable.d.ts +18 -0
  125. package/lib/pl/diagnosticMessages.generated.json +2129 -0
  126. package/lib/pt-br/diagnosticMessages.generated.json +2129 -0
  127. package/lib/ru/diagnosticMessages.generated.json +2125 -0
  128. package/lib/tr/diagnosticMessages.generated.json +2129 -0
  129. package/lib/tsc.js +8 -0
  130. package/lib/tsserver.js +8 -0
  131. package/lib/tsserverlibrary.d.ts +17 -0
  132. package/lib/tsserverlibrary.js +21 -0
  133. package/lib/typesMap.json +497 -0
  134. package/lib/typescript.d.ts +11454 -0
  135. package/lib/typescript.js +203598 -0
  136. package/lib/typingsInstaller.js +8 -0
  137. package/lib/watchGuard.js +53 -0
  138. package/lib/zh-cn/diagnosticMessages.generated.json +2129 -0
  139. package/lib/zh-tw/diagnosticMessages.generated.json +2125 -0
  140. package/native/bridge.dylib +0 -0
  141. package/native/bridge.h +103 -0
  142. package/package.json +35 -0
  143. package/vendor/native-preview/bin/tsgo +2 -0
  144. package/vendor/native-preview/dist/api/async/api.d.ts +408 -0
  145. package/vendor/native-preview/dist/api/async/api.d.ts.map +1 -0
  146. package/vendor/native-preview/dist/api/async/api.js +1467 -0
  147. package/vendor/native-preview/dist/api/async/api.js.map +1 -0
  148. package/vendor/native-preview/dist/api/async/client.d.ts +22 -0
  149. package/vendor/native-preview/dist/api/async/client.d.ts.map +1 -0
  150. package/vendor/native-preview/dist/api/async/client.js +140 -0
  151. package/vendor/native-preview/dist/api/async/client.js.map +1 -0
  152. package/vendor/native-preview/dist/api/async/types.d.ts +298 -0
  153. package/vendor/native-preview/dist/api/async/types.d.ts.map +1 -0
  154. package/vendor/native-preview/dist/api/async/types.js +2 -0
  155. package/vendor/native-preview/dist/api/async/types.js.map +1 -0
  156. package/vendor/native-preview/dist/api/fs.d.ts +23 -0
  157. package/vendor/native-preview/dist/api/fs.d.ts.map +1 -0
  158. package/vendor/native-preview/dist/api/fs.js +109 -0
  159. package/vendor/native-preview/dist/api/fs.js.map +1 -0
  160. package/vendor/native-preview/dist/api/node/encoder.d.ts +15 -0
  161. package/vendor/native-preview/dist/api/node/encoder.d.ts.map +1 -0
  162. package/vendor/native-preview/dist/api/node/encoder.generated.d.ts +5 -0
  163. package/vendor/native-preview/dist/api/node/encoder.generated.d.ts.map +1 -0
  164. package/vendor/native-preview/dist/api/node/encoder.generated.js +74 -0
  165. package/vendor/native-preview/dist/api/node/encoder.generated.js.map +1 -0
  166. package/vendor/native-preview/dist/api/node/encoder.js +304 -0
  167. package/vendor/native-preview/dist/api/node/encoder.js.map +1 -0
  168. package/vendor/native-preview/dist/api/node/msgpack.d.ts +32 -0
  169. package/vendor/native-preview/dist/api/node/msgpack.d.ts.map +1 -0
  170. package/vendor/native-preview/dist/api/node/msgpack.js +212 -0
  171. package/vendor/native-preview/dist/api/node/msgpack.js.map +1 -0
  172. package/vendor/native-preview/dist/api/node/node.d.ts +70 -0
  173. package/vendor/native-preview/dist/api/node/node.d.ts.map +1 -0
  174. package/vendor/native-preview/dist/api/node/node.generated.d.ts +182 -0
  175. package/vendor/native-preview/dist/api/node/node.generated.d.ts.map +1 -0
  176. package/vendor/native-preview/dist/api/node/node.generated.js +850 -0
  177. package/vendor/native-preview/dist/api/node/node.generated.js.map +1 -0
  178. package/vendor/native-preview/dist/api/node/node.infrastructure.d.ts +53 -0
  179. package/vendor/native-preview/dist/api/node/node.infrastructure.d.ts.map +1 -0
  180. package/vendor/native-preview/dist/api/node/node.infrastructure.js +126 -0
  181. package/vendor/native-preview/dist/api/node/node.infrastructure.js.map +1 -0
  182. package/vendor/native-preview/dist/api/node/node.js +252 -0
  183. package/vendor/native-preview/dist/api/node/node.js.map +1 -0
  184. package/vendor/native-preview/dist/api/node/protocol.d.ts +29 -0
  185. package/vendor/native-preview/dist/api/node/protocol.d.ts.map +1 -0
  186. package/vendor/native-preview/dist/api/node/protocol.generated.d.ts +4 -0
  187. package/vendor/native-preview/dist/api/node/protocol.generated.d.ts.map +1 -0
  188. package/vendor/native-preview/dist/api/node/protocol.generated.js +241 -0
  189. package/vendor/native-preview/dist/api/node/protocol.generated.js.map +1 -0
  190. package/vendor/native-preview/dist/api/node/protocol.js +30 -0
  191. package/vendor/native-preview/dist/api/node/protocol.js.map +1 -0
  192. package/vendor/native-preview/dist/api/options.d.ts +24 -0
  193. package/vendor/native-preview/dist/api/options.d.ts.map +1 -0
  194. package/vendor/native-preview/dist/api/options.js +11 -0
  195. package/vendor/native-preview/dist/api/options.js.map +1 -0
  196. package/vendor/native-preview/dist/api/path.d.ts +110 -0
  197. package/vendor/native-preview/dist/api/path.d.ts.map +1 -0
  198. package/vendor/native-preview/dist/api/path.js +508 -0
  199. package/vendor/native-preview/dist/api/path.js.map +1 -0
  200. package/vendor/native-preview/dist/api/proto.d.ts +236 -0
  201. package/vendor/native-preview/dist/api/proto.d.ts.map +1 -0
  202. package/vendor/native-preview/dist/api/proto.js +37 -0
  203. package/vendor/native-preview/dist/api/proto.js.map +1 -0
  204. package/vendor/native-preview/dist/api/sourceFileCache.d.ts +79 -0
  205. package/vendor/native-preview/dist/api/sourceFileCache.d.ts.map +1 -0
  206. package/vendor/native-preview/dist/api/sourceFileCache.js +169 -0
  207. package/vendor/native-preview/dist/api/sourceFileCache.js.map +1 -0
  208. package/vendor/native-preview/dist/api/sync/api.d.ts +436 -0
  209. package/vendor/native-preview/dist/api/sync/api.d.ts.map +1 -0
  210. package/vendor/native-preview/dist/api/sync/api.js +1573 -0
  211. package/vendor/native-preview/dist/api/sync/api.js.map +1 -0
  212. package/vendor/native-preview/dist/api/sync/client.d.ts +13 -0
  213. package/vendor/native-preview/dist/api/sync/client.d.ts.map +1 -0
  214. package/vendor/native-preview/dist/api/sync/client.js +72 -0
  215. package/vendor/native-preview/dist/api/sync/client.js.map +1 -0
  216. package/vendor/native-preview/dist/api/sync/types.d.ts +311 -0
  217. package/vendor/native-preview/dist/api/sync/types.d.ts.map +1 -0
  218. package/vendor/native-preview/dist/api/sync/types.js +2 -0
  219. package/vendor/native-preview/dist/api/sync/types.js.map +1 -0
  220. package/vendor/native-preview/dist/api/syncChannel.d.ts +111 -0
  221. package/vendor/native-preview/dist/api/syncChannel.d.ts.map +1 -0
  222. package/vendor/native-preview/dist/api/syncChannel.js +488 -0
  223. package/vendor/native-preview/dist/api/syncChannel.js.map +1 -0
  224. package/vendor/native-preview/dist/ast/ast.d.ts +76 -0
  225. package/vendor/native-preview/dist/ast/ast.d.ts.map +1 -0
  226. package/vendor/native-preview/dist/ast/ast.generated.d.ts +1161 -0
  227. package/vendor/native-preview/dist/ast/ast.generated.d.ts.map +1 -0
  228. package/vendor/native-preview/dist/ast/ast.generated.js +4 -0
  229. package/vendor/native-preview/dist/ast/ast.generated.js.map +1 -0
  230. package/vendor/native-preview/dist/ast/ast.js +7 -0
  231. package/vendor/native-preview/dist/ast/ast.js.map +1 -0
  232. package/vendor/native-preview/dist/ast/astnav.d.ts +19 -0
  233. package/vendor/native-preview/dist/ast/astnav.d.ts.map +1 -0
  234. package/vendor/native-preview/dist/ast/astnav.js +596 -0
  235. package/vendor/native-preview/dist/ast/astnav.js.map +1 -0
  236. package/vendor/native-preview/dist/ast/clone.d.ts +16 -0
  237. package/vendor/native-preview/dist/ast/clone.d.ts.map +1 -0
  238. package/vendor/native-preview/dist/ast/clone.js +104 -0
  239. package/vendor/native-preview/dist/ast/clone.js.map +1 -0
  240. package/vendor/native-preview/dist/ast/factory.generated.d.ts +522 -0
  241. package/vendor/native-preview/dist/ast/factory.generated.d.ts.map +1 -0
  242. package/vendor/native-preview/dist/ast/factory.generated.js +3059 -0
  243. package/vendor/native-preview/dist/ast/factory.generated.js.map +1 -0
  244. package/vendor/native-preview/dist/ast/index.d.ts +18 -0
  245. package/vendor/native-preview/dist/ast/index.d.ts.map +1 -0
  246. package/vendor/native-preview/dist/ast/index.js +18 -0
  247. package/vendor/native-preview/dist/ast/index.js.map +1 -0
  248. package/vendor/native-preview/dist/ast/is.d.ts +34 -0
  249. package/vendor/native-preview/dist/ast/is.d.ts.map +1 -0
  250. package/vendor/native-preview/dist/ast/is.generated.d.ts +330 -0
  251. package/vendor/native-preview/dist/ast/is.generated.d.ts.map +1 -0
  252. package/vendor/native-preview/dist/ast/is.generated.js +1107 -0
  253. package/vendor/native-preview/dist/ast/is.generated.js.map +1 -0
  254. package/vendor/native-preview/dist/ast/is.js +226 -0
  255. package/vendor/native-preview/dist/ast/is.js.map +1 -0
  256. package/vendor/native-preview/dist/ast/scanner.d.ts +97 -0
  257. package/vendor/native-preview/dist/ast/scanner.d.ts.map +1 -0
  258. package/vendor/native-preview/dist/ast/scanner.js +2230 -0
  259. package/vendor/native-preview/dist/ast/scanner.js.map +1 -0
  260. package/vendor/native-preview/dist/ast/utils.d.ts +7 -0
  261. package/vendor/native-preview/dist/ast/utils.d.ts.map +1 -0
  262. package/vendor/native-preview/dist/ast/utils.js +47 -0
  263. package/vendor/native-preview/dist/ast/utils.js.map +1 -0
  264. package/vendor/native-preview/dist/ast/visitor.d.ts +14 -0
  265. package/vendor/native-preview/dist/ast/visitor.d.ts.map +1 -0
  266. package/vendor/native-preview/dist/ast/visitor.generated.d.ts +50 -0
  267. package/vendor/native-preview/dist/ast/visitor.generated.d.ts.map +1 -0
  268. package/vendor/native-preview/dist/ast/visitor.generated.js +978 -0
  269. package/vendor/native-preview/dist/ast/visitor.generated.js.map +1 -0
  270. package/vendor/native-preview/dist/ast/visitor.js +47 -0
  271. package/vendor/native-preview/dist/ast/visitor.js.map +1 -0
  272. package/vendor/native-preview/dist/enums/characterCodes.d.ts +2 -0
  273. package/vendor/native-preview/dist/enums/characterCodes.d.ts.map +1 -0
  274. package/vendor/native-preview/dist/enums/characterCodes.enum.d.ts +129 -0
  275. package/vendor/native-preview/dist/enums/characterCodes.enum.d.ts.map +1 -0
  276. package/vendor/native-preview/dist/enums/characterCodes.enum.js +132 -0
  277. package/vendor/native-preview/dist/enums/characterCodes.enum.js.map +1 -0
  278. package/vendor/native-preview/dist/enums/characterCodes.js +130 -0
  279. package/vendor/native-preview/dist/enums/characterCodes.js.map +1 -0
  280. package/vendor/native-preview/dist/enums/commentDirectiveType.d.ts +2 -0
  281. package/vendor/native-preview/dist/enums/commentDirectiveType.d.ts.map +1 -0
  282. package/vendor/native-preview/dist/enums/commentDirectiveType.enum.d.ts +5 -0
  283. package/vendor/native-preview/dist/enums/commentDirectiveType.enum.d.ts.map +1 -0
  284. package/vendor/native-preview/dist/enums/commentDirectiveType.enum.js +6 -0
  285. package/vendor/native-preview/dist/enums/commentDirectiveType.enum.js.map +1 -0
  286. package/vendor/native-preview/dist/enums/commentDirectiveType.js +6 -0
  287. package/vendor/native-preview/dist/enums/commentDirectiveType.js.map +1 -0
  288. package/vendor/native-preview/dist/enums/completionItemKind.d.ts +2 -0
  289. package/vendor/native-preview/dist/enums/completionItemKind.d.ts.map +1 -0
  290. package/vendor/native-preview/dist/enums/completionItemKind.enum.d.ts +28 -0
  291. package/vendor/native-preview/dist/enums/completionItemKind.enum.d.ts.map +1 -0
  292. package/vendor/native-preview/dist/enums/completionItemKind.enum.js +30 -0
  293. package/vendor/native-preview/dist/enums/completionItemKind.enum.js.map +1 -0
  294. package/vendor/native-preview/dist/enums/completionItemKind.js +30 -0
  295. package/vendor/native-preview/dist/enums/completionItemKind.js.map +1 -0
  296. package/vendor/native-preview/dist/enums/diagnosticCategory.d.ts +2 -0
  297. package/vendor/native-preview/dist/enums/diagnosticCategory.d.ts.map +1 -0
  298. package/vendor/native-preview/dist/enums/diagnosticCategory.enum.d.ts +7 -0
  299. package/vendor/native-preview/dist/enums/diagnosticCategory.enum.d.ts.map +1 -0
  300. package/vendor/native-preview/dist/enums/diagnosticCategory.enum.js +9 -0
  301. package/vendor/native-preview/dist/enums/diagnosticCategory.enum.js.map +1 -0
  302. package/vendor/native-preview/dist/enums/diagnosticCategory.js +9 -0
  303. package/vendor/native-preview/dist/enums/diagnosticCategory.js.map +1 -0
  304. package/vendor/native-preview/dist/enums/elementFlags.d.ts +2 -0
  305. package/vendor/native-preview/dist/enums/elementFlags.d.ts.map +1 -0
  306. package/vendor/native-preview/dist/enums/elementFlags.enum.d.ts +12 -0
  307. package/vendor/native-preview/dist/enums/elementFlags.enum.d.ts.map +1 -0
  308. package/vendor/native-preview/dist/enums/elementFlags.enum.js +14 -0
  309. package/vendor/native-preview/dist/enums/elementFlags.enum.js.map +1 -0
  310. package/vendor/native-preview/dist/enums/elementFlags.js +14 -0
  311. package/vendor/native-preview/dist/enums/elementFlags.js.map +1 -0
  312. package/vendor/native-preview/dist/enums/languageVariant.d.ts +2 -0
  313. package/vendor/native-preview/dist/enums/languageVariant.d.ts.map +1 -0
  314. package/vendor/native-preview/dist/enums/languageVariant.enum.d.ts +5 -0
  315. package/vendor/native-preview/dist/enums/languageVariant.enum.d.ts.map +1 -0
  316. package/vendor/native-preview/dist/enums/languageVariant.enum.js +6 -0
  317. package/vendor/native-preview/dist/enums/languageVariant.enum.js.map +1 -0
  318. package/vendor/native-preview/dist/enums/languageVariant.js +6 -0
  319. package/vendor/native-preview/dist/enums/languageVariant.js.map +1 -0
  320. package/vendor/native-preview/dist/enums/modifierFlags.d.ts +2 -0
  321. package/vendor/native-preview/dist/enums/modifierFlags.d.ts.map +1 -0
  322. package/vendor/native-preview/dist/enums/modifierFlags.enum.d.ts +42 -0
  323. package/vendor/native-preview/dist/enums/modifierFlags.enum.d.ts.map +1 -0
  324. package/vendor/native-preview/dist/enums/modifierFlags.enum.js +44 -0
  325. package/vendor/native-preview/dist/enums/modifierFlags.enum.js.map +1 -0
  326. package/vendor/native-preview/dist/enums/modifierFlags.js +44 -0
  327. package/vendor/native-preview/dist/enums/modifierFlags.js.map +1 -0
  328. package/vendor/native-preview/dist/enums/nodeBuilderFlags.d.ts +2 -0
  329. package/vendor/native-preview/dist/enums/nodeBuilderFlags.d.ts.map +1 -0
  330. package/vendor/native-preview/dist/enums/nodeBuilderFlags.enum.d.ts +36 -0
  331. package/vendor/native-preview/dist/enums/nodeBuilderFlags.enum.d.ts.map +1 -0
  332. package/vendor/native-preview/dist/enums/nodeBuilderFlags.enum.js +38 -0
  333. package/vendor/native-preview/dist/enums/nodeBuilderFlags.enum.js.map +1 -0
  334. package/vendor/native-preview/dist/enums/nodeBuilderFlags.js +38 -0
  335. package/vendor/native-preview/dist/enums/nodeBuilderFlags.js.map +1 -0
  336. package/vendor/native-preview/dist/enums/nodeFlags.d.ts +2 -0
  337. package/vendor/native-preview/dist/enums/nodeFlags.d.ts.map +1 -0
  338. package/vendor/native-preview/dist/enums/nodeFlags.enum.d.ts +44 -0
  339. package/vendor/native-preview/dist/enums/nodeFlags.enum.d.ts.map +1 -0
  340. package/vendor/native-preview/dist/enums/nodeFlags.enum.js +46 -0
  341. package/vendor/native-preview/dist/enums/nodeFlags.enum.js.map +1 -0
  342. package/vendor/native-preview/dist/enums/nodeFlags.js +46 -0
  343. package/vendor/native-preview/dist/enums/nodeFlags.js.map +1 -0
  344. package/vendor/native-preview/dist/enums/objectFlags.d.ts +2 -0
  345. package/vendor/native-preview/dist/enums/objectFlags.d.ts.map +1 -0
  346. package/vendor/native-preview/dist/enums/objectFlags.enum.d.ts +50 -0
  347. package/vendor/native-preview/dist/enums/objectFlags.enum.d.ts.map +1 -0
  348. package/vendor/native-preview/dist/enums/objectFlags.enum.js +52 -0
  349. package/vendor/native-preview/dist/enums/objectFlags.enum.js.map +1 -0
  350. package/vendor/native-preview/dist/enums/objectFlags.js +52 -0
  351. package/vendor/native-preview/dist/enums/objectFlags.js.map +1 -0
  352. package/vendor/native-preview/dist/enums/outerExpressionKinds.d.ts +2 -0
  353. package/vendor/native-preview/dist/enums/outerExpressionKinds.d.ts.map +1 -0
  354. package/vendor/native-preview/dist/enums/outerExpressionKinds.enum.d.ts +16 -0
  355. package/vendor/native-preview/dist/enums/outerExpressionKinds.enum.d.ts.map +1 -0
  356. package/vendor/native-preview/dist/enums/outerExpressionKinds.enum.js +18 -0
  357. package/vendor/native-preview/dist/enums/outerExpressionKinds.enum.js.map +1 -0
  358. package/vendor/native-preview/dist/enums/outerExpressionKinds.js +18 -0
  359. package/vendor/native-preview/dist/enums/outerExpressionKinds.js.map +1 -0
  360. package/vendor/native-preview/dist/enums/regularExpressionFlags.d.ts +2 -0
  361. package/vendor/native-preview/dist/enums/regularExpressionFlags.d.ts.map +1 -0
  362. package/vendor/native-preview/dist/enums/regularExpressionFlags.enum.d.ts +13 -0
  363. package/vendor/native-preview/dist/enums/regularExpressionFlags.enum.d.ts.map +1 -0
  364. package/vendor/native-preview/dist/enums/regularExpressionFlags.enum.js +14 -0
  365. package/vendor/native-preview/dist/enums/regularExpressionFlags.enum.js.map +1 -0
  366. package/vendor/native-preview/dist/enums/regularExpressionFlags.js +14 -0
  367. package/vendor/native-preview/dist/enums/regularExpressionFlags.js.map +1 -0
  368. package/vendor/native-preview/dist/enums/scriptKind.d.ts +2 -0
  369. package/vendor/native-preview/dist/enums/scriptKind.d.ts.map +1 -0
  370. package/vendor/native-preview/dist/enums/scriptKind.enum.d.ts +11 -0
  371. package/vendor/native-preview/dist/enums/scriptKind.enum.d.ts.map +1 -0
  372. package/vendor/native-preview/dist/enums/scriptKind.enum.js +12 -0
  373. package/vendor/native-preview/dist/enums/scriptKind.enum.js.map +1 -0
  374. package/vendor/native-preview/dist/enums/scriptKind.js +12 -0
  375. package/vendor/native-preview/dist/enums/scriptKind.js.map +1 -0
  376. package/vendor/native-preview/dist/enums/scriptTarget.d.ts +2 -0
  377. package/vendor/native-preview/dist/enums/scriptTarget.d.ts.map +1 -0
  378. package/vendor/native-preview/dist/enums/scriptTarget.enum.d.ts +17 -0
  379. package/vendor/native-preview/dist/enums/scriptTarget.enum.d.ts.map +1 -0
  380. package/vendor/native-preview/dist/enums/scriptTarget.enum.js +18 -0
  381. package/vendor/native-preview/dist/enums/scriptTarget.enum.js.map +1 -0
  382. package/vendor/native-preview/dist/enums/scriptTarget.js +18 -0
  383. package/vendor/native-preview/dist/enums/scriptTarget.js.map +1 -0
  384. package/vendor/native-preview/dist/enums/signatureFlags.d.ts +2 -0
  385. package/vendor/native-preview/dist/enums/signatureFlags.d.ts.map +1 -0
  386. package/vendor/native-preview/dist/enums/signatureFlags.enum.d.ts +15 -0
  387. package/vendor/native-preview/dist/enums/signatureFlags.enum.d.ts.map +1 -0
  388. package/vendor/native-preview/dist/enums/signatureFlags.enum.js +17 -0
  389. package/vendor/native-preview/dist/enums/signatureFlags.enum.js.map +1 -0
  390. package/vendor/native-preview/dist/enums/signatureFlags.js +17 -0
  391. package/vendor/native-preview/dist/enums/signatureFlags.js.map +1 -0
  392. package/vendor/native-preview/dist/enums/signatureKind.d.ts +2 -0
  393. package/vendor/native-preview/dist/enums/signatureKind.d.ts.map +1 -0
  394. package/vendor/native-preview/dist/enums/signatureKind.enum.d.ts +5 -0
  395. package/vendor/native-preview/dist/enums/signatureKind.enum.d.ts.map +1 -0
  396. package/vendor/native-preview/dist/enums/signatureKind.enum.js +7 -0
  397. package/vendor/native-preview/dist/enums/signatureKind.enum.js.map +1 -0
  398. package/vendor/native-preview/dist/enums/signatureKind.js +7 -0
  399. package/vendor/native-preview/dist/enums/signatureKind.js.map +1 -0
  400. package/vendor/native-preview/dist/enums/symbolFlags.d.ts +2 -0
  401. package/vendor/native-preview/dist/enums/symbolFlags.d.ts.map +1 -0
  402. package/vendor/native-preview/dist/enums/symbolFlags.enum.d.ts +71 -0
  403. package/vendor/native-preview/dist/enums/symbolFlags.enum.d.ts.map +1 -0
  404. package/vendor/native-preview/dist/enums/symbolFlags.enum.js +73 -0
  405. package/vendor/native-preview/dist/enums/symbolFlags.enum.js.map +1 -0
  406. package/vendor/native-preview/dist/enums/symbolFlags.js +73 -0
  407. package/vendor/native-preview/dist/enums/symbolFlags.js.map +1 -0
  408. package/vendor/native-preview/dist/enums/syntaxKind.d.ts +2 -0
  409. package/vendor/native-preview/dist/enums/syntaxKind.d.ts.map +1 -0
  410. package/vendor/native-preview/dist/enums/syntaxKind.enum.d.ts +389 -0
  411. package/vendor/native-preview/dist/enums/syntaxKind.enum.d.ts.map +1 -0
  412. package/vendor/native-preview/dist/enums/syntaxKind.enum.js +391 -0
  413. package/vendor/native-preview/dist/enums/syntaxKind.enum.js.map +1 -0
  414. package/vendor/native-preview/dist/enums/syntaxKind.js +391 -0
  415. package/vendor/native-preview/dist/enums/syntaxKind.js.map +1 -0
  416. package/vendor/native-preview/dist/enums/tokenFlags.d.ts +2 -0
  417. package/vendor/native-preview/dist/enums/tokenFlags.d.ts.map +1 -0
  418. package/vendor/native-preview/dist/enums/tokenFlags.enum.d.ts +30 -0
  419. package/vendor/native-preview/dist/enums/tokenFlags.enum.d.ts.map +1 -0
  420. package/vendor/native-preview/dist/enums/tokenFlags.enum.js +32 -0
  421. package/vendor/native-preview/dist/enums/tokenFlags.enum.js.map +1 -0
  422. package/vendor/native-preview/dist/enums/tokenFlags.js +32 -0
  423. package/vendor/native-preview/dist/enums/tokenFlags.js.map +1 -0
  424. package/vendor/native-preview/dist/enums/typeFlags.d.ts +2 -0
  425. package/vendor/native-preview/dist/enums/typeFlags.d.ts.map +1 -0
  426. package/vendor/native-preview/dist/enums/typeFlags.enum.d.ts +76 -0
  427. package/vendor/native-preview/dist/enums/typeFlags.enum.d.ts.map +1 -0
  428. package/vendor/native-preview/dist/enums/typeFlags.enum.js +78 -0
  429. package/vendor/native-preview/dist/enums/typeFlags.enum.js.map +1 -0
  430. package/vendor/native-preview/dist/enums/typeFlags.js +78 -0
  431. package/vendor/native-preview/dist/enums/typeFlags.js.map +1 -0
  432. package/vendor/native-preview/dist/enums/typePredicateKind.d.ts +2 -0
  433. package/vendor/native-preview/dist/enums/typePredicateKind.d.ts.map +1 -0
  434. package/vendor/native-preview/dist/enums/typePredicateKind.enum.d.ts +7 -0
  435. package/vendor/native-preview/dist/enums/typePredicateKind.enum.d.ts.map +1 -0
  436. package/vendor/native-preview/dist/enums/typePredicateKind.enum.js +9 -0
  437. package/vendor/native-preview/dist/enums/typePredicateKind.enum.js.map +1 -0
  438. package/vendor/native-preview/dist/enums/typePredicateKind.js +9 -0
  439. package/vendor/native-preview/dist/enums/typePredicateKind.js.map +1 -0
  440. package/vendor/native-preview/lib/getExePath.d.ts +2 -0
  441. package/vendor/native-preview/lib/getExePath.js +70 -0
  442. package/vendor/native-preview/lib/tsgo.js +28 -0
  443. package/vendor/native-preview/lib/version.cjs +3 -0
  444. package/vendor/native-preview/lib/version.d.cts +2 -0
  445. package/vendor/native-preview/package.json +118 -0
  446. package/vendor/native-preview/tsconfig.tsbuildinfo +1 -0
  447. package/vendor/native-preview/vendor/vscode-jsonrpc/License.txt +11 -0
  448. package/vendor/native-preview/vendor/vscode-jsonrpc/README.md +54 -0
  449. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
  450. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/browser/main.js +83 -0
  451. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +22 -0
  452. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/browser/ril.js +210 -0
  453. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/api.d.ts +14 -0
  454. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/api.js +87 -0
  455. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
  456. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/cancellation.js +132 -0
  457. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/connection.d.ts +367 -0
  458. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/connection.js +1271 -0
  459. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
  460. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/disposable.js +16 -0
  461. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
  462. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/encoding.js +70 -0
  463. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/events.d.ts +39 -0
  464. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/events.js +135 -0
  465. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/is.d.ts +7 -0
  466. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/is.js +34 -0
  467. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +55 -0
  468. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/linkedMap.js +412 -0
  469. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
  470. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +155 -0
  471. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
  472. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/messageReader.js +246 -0
  473. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
  474. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/messageWriter.js +157 -0
  475. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
  476. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/messages.js +436 -0
  477. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
  478. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/ral.js +23 -0
  479. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
  480. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/semaphore.js +74 -0
  481. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
  482. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +77 -0
  483. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/node/main.d.ts +58 -0
  484. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/node/main.js +289 -0
  485. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/node/ril.d.ts +12 -0
  486. package/vendor/native-preview/vendor/vscode-jsonrpc/lib/node/ril.js +163 -0
  487. package/vendor/native-preview/vendor/vscode-jsonrpc/package.json +54 -0
  488. package/vendor/native-preview/vendor/vscode-jsonrpc/typings/thenable.d.ts +5 -0
package/LICENSE ADDED
@@ -0,0 +1,55 @@
1
+ Apache License
2
+
3
+ Version 2.0, January 2004
4
+
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
16
+
17
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
18
+
19
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
20
+
21
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
22
+
23
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
24
+
25
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
26
+
27
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
28
+
29
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
30
+
31
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
32
+
33
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
34
+
35
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
36
+
37
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
38
+
39
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
40
+
41
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
42
+
43
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
package/NOTICE ADDED
@@ -0,0 +1,18 @@
1
+ typescript-native-bridge
2
+ Copyright 2026 typescript-native-bridge contributors
3
+
4
+ This product includes software developed at:
5
+
6
+ Microsoft TypeScript
7
+ https://github.com/microsoft/TypeScript
8
+ Copyright (c) Microsoft Corporation.
9
+ Licensed under the Apache License, Version 2.0.
10
+
11
+ Microsoft typescript-go
12
+ https://github.com/microsoft/typescript-go
13
+ Copyright (c) Microsoft Corporation.
14
+ Licensed under the Apache License, Version 2.0.
15
+
16
+ Modifications by the typescript-native-bridge project (patches/, overlay/, bridge/)
17
+ are noted in the repository history and distributed under the Apache License,
18
+ Version 2.0.
package/README.md ADDED
@@ -0,0 +1,448 @@
1
+ # typescript-native-bridge (TNB)
2
+
3
+ > **Status:** Experimental. Published on npm as [`typescript-native-bridge`](https://www.npmjs.com/package/typescript-native-bridge).
4
+
5
+ **A faster `typescript` you can drop into any project** (measure on your repo; no fixed speedup guarantee).
6
+
7
+ Swap the `typescript` package for this fork and keep using `tsc`, `vue-tsc`, ESLint, and your
8
+ editor as before. Type-checking runs on **tsgo** (Microsoft's Go TypeScript compiler) instead
9
+ of JavaScript. You do **not** need to learn tsgo, change imports, or add per-tool config.
10
+
11
+ ---
12
+
13
+ ## Why TNB exists
14
+
15
+ TNB is a **drop-in `typescript` replacement** — not a separate `tsgo` CLI, not a new
16
+ LSP. One `typescript` override accelerates every tool that calls `getTypeChecker()` through
17
+ the standard Compiler API.
18
+
19
+ ### Three problems one override fixes
20
+
21
+ **1. `vue-tsc` cannot use standalone `tsgo`**
22
+
23
+ `vue-tsc` is built on the `typescript` programmatic API + Volar hooks (`extraFileExtensions`,
24
+ virtual `getSourceFile` for `.vue`, `createProgram` wrapping). Standalone `tsgo` / `tsgo
25
+ LSP` does not speak that protocol — you cannot speed up `vue-tsc` by swapping the CLI to
26
+ `tsgo`. TNB keeps `vue-tsc` unchanged and routes `createProgram` → `createTsgoProgram`,
27
+ feeding Volar virtual content to Go via in-process overlays.
28
+
29
+ **2. ESLint + typescript-eslint type-aware rules are checker-bound**
30
+
31
+ `@typescript-eslint/parser` imports `typescript` and calls `createProgram` /
32
+ `getTypeChecker()` for type-aware rules. The bottleneck is the JS checker, not ESLint's
33
+ AST walk. TNB makes the parser pick up the fork automatically — no eslint config changes,
34
+ no separate `tsgo` lint pass.
35
+
36
+ **3. Editors need `tsserver` + Language Service Plugins (not tsgo LSP)**
37
+
38
+ Volar (`@vue/typescript-plugin`) runs as a **tsserver LS Plugin**. Microsoft's tsgo LSP
39
+ preview does not support that plugin model — migrating the editor means losing `.vue`
40
+ integration. TNB keeps **stock `tsserver` + plugin host**, swapping only the checker
41
+ backend to Go in-process.
42
+
43
+ ### What this means in practice
44
+
45
+ | Tool | Still uses | Checker engine |
46
+ |---|---|---|
47
+ | `vue-tsc` / `tsc` | `typescript` API (`_tsc.js`) | tsgo |
48
+ | `tsserver` / VS Code | `typescript` + LS Plugins | tsgo |
49
+ | `@typescript-eslint/parser` | `typescript` API | tsgo |
50
+
51
+ Compare with `@typescript/native-preview`: separate `tsgo` binary, change scripts, editor
52
+ uses experimental tsgo LSP — **does not** cover the three rows above with one override.
53
+
54
+ ---
55
+
56
+ ## 10-minute checklist
57
+
58
+ Use this if you just want to try TNB on an existing project:
59
+
60
+ - [ ] Add a `typescript` override (see below)
61
+ - [ ] Run `pnpm install` / `npm install`
62
+ - [ ] Run your usual typecheck (`vue-tsc`, `tsc`, or `nuxi typecheck`)
63
+ - [ ] Confirm the **TNB ACTIVE** banner appears on stderr (first run per process)
64
+ - [ ] **Editor:** set `typescript.tsdk` and switch to the workspace TypeScript version (see [Editor / tsserver](#editor--tsserver-tsdk))
65
+ - [ ] If no banner → see [Troubleshooting](#troubleshooting)
66
+
67
+ ---
68
+
69
+ ## Quick start
70
+
71
+ ### pnpm (monorepos)
72
+
73
+ Put the override in **`pnpm-workspace.yaml`** at the repo root:
74
+
75
+ ```yaml
76
+ # pnpm-workspace.yaml
77
+ overrides:
78
+ typescript: npm:typescript-native-bridge@<version>
79
+ ```
80
+
81
+ ```bash
82
+ pnpm install
83
+ pnpm exec vue-tsc -b --noEmit # or your project's typecheck script
84
+ ```
85
+
86
+ If packages use `catalog:typescript`, update the **catalog entry** as well (see
87
+ [Nuxt / Vue / monorepo notes](#nuxt--vue--monorepo-notes)).
88
+
89
+ ### npm
90
+
91
+ ```jsonc
92
+ // package.json
93
+ {
94
+ "overrides": {
95
+ "typescript": "npm:typescript-native-bridge@<version>"
96
+ }
97
+ }
98
+ ```
99
+
100
+ ### yarn
101
+
102
+ ```jsonc
103
+ // package.json
104
+ {
105
+ "resolutions": {
106
+ "typescript": "npm:typescript-native-bridge@<version>"
107
+ }
108
+ }
109
+ ```
110
+
111
+ ### Local path (developing TNB or pinning a git checkout)
112
+
113
+ ```yaml
114
+ # pnpm-workspace.yaml
115
+ overrides:
116
+ typescript: link:../typescript-native-bridge
117
+ ```
118
+
119
+ Build the fork first (`npm run setup` in the TNB repo). See [Developing TNB](#developing-tnb-contributors).
120
+
121
+ After any override change: **reinstall dependencies**. The override applies repo-wide —
122
+ `vue-tsc`, `@typescript-eslint/parser`, and other transitive `typescript` users all pick
123
+ up the fork.
124
+
125
+ ---
126
+
127
+ ## How to tell it's working
128
+
129
+ On the **first** type-check in a process, TNB prints this banner to **stderr**:
130
+
131
+ ```
132
+ ┌─────────────────────────────────────────────────────────┐
133
+ │ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │
134
+ └─────────────────────────────────────────────────────────┘
135
+ ```
136
+
137
+ **No banner = stock `typescript` is still loaded.** See [Troubleshooting](#troubleshooting).
138
+
139
+ Quick sanity check:
140
+
141
+ ```bash
142
+ node -e "console.log(require.resolve('typescript'))"
143
+ # should point at typescript-native-bridge, not node_modules/typescript@5.x
144
+ ```
145
+
146
+ ---
147
+
148
+ ## What you get
149
+
150
+ | | Stock `typescript` | TNB |
151
+ |---|---|---|
152
+ | Import | `import * as ts from "typescript"` | Same |
153
+ | CLI | `tsc`, `vue-tsc`, `nuxi typecheck` | Same commands |
154
+ | Per-tool config | — | None |
155
+ | Checker engine | JavaScript | Go (tsgo), in-process |
156
+
157
+ ```
158
+ your tool → typescript (fork) → tsgo (Go)
159
+ same public API type-checking
160
+ └── in-process bridge (no child process, no IPC)
161
+ ```
162
+
163
+ **API compatibility:** Existing `tsc` / `vue-tsc` / ESLint workflows work without code
164
+ changes. The checker is implemented by tsgo internally; tools that depend on deep
165
+ TypeScript internals or custom emit paths should be validated separately.
166
+
167
+ ---
168
+
169
+ ## Nuxt / Vue / monorepo notes
170
+
171
+ ### pnpm catalog + overrides
172
+
173
+ If your monorepo uses a **catalog** and any package depends on `typescript` via
174
+ `catalog:`, update the catalog entry **as well as** `overrides:` — otherwise those
175
+ packages may still resolve stock TypeScript even when root `overrides` is set:
176
+
177
+ ```yaml
178
+ # pnpm-workspace.yaml
179
+ catalog:
180
+ typescript: link:../typescript-native-bridge
181
+ overrides:
182
+ typescript: link:../typescript-native-bridge
183
+ ```
184
+
185
+ > **Monorepo tip:** Prefer workspace `overrides` only. A root `pnpm add -D typescript@link:...`
186
+ > alone often does **not** replace `vue-tsc`'s transitive `typescript`.
187
+
188
+ ### Nuxt projects
189
+
190
+ Typical flow:
191
+
192
+ ```bash
193
+ pnpm exec nuxi prepare # generate .nuxt types first
194
+ pnpm exec nuxi typecheck # or your package.json "typecheck" script
195
+ ```
196
+
197
+ ### Vue / Volar / SFC
198
+
199
+ **Supported**
200
+
201
+ - `import App from './App.vue'` resolves to the `.vue` file itself
202
+ - Volar **virtual TypeScript** (content injected via `getSourceFile` when the file
203
+ isn't on disk) via overlay
204
+ - `.vue`, `.svelte`, `.astro`, `.mdx`, etc. through the standard `extraFileExtensions`
205
+ contract — no hard-coded `.vue` special case
206
+ - `allowArbitraryExtensions` inferred `true` in tsgo when host extra extensions are
207
+ present and tsconfig leaves the option unset (explicit `false` opts out)
208
+
209
+ **Not supported**
210
+
211
+ - Custom `resolveModuleNames` / `resolveModuleNameLiterals` that remap an import to a
212
+ **different physical file** (bridge is synchronous JS→Go; tsgo cannot call back into JS
213
+ resolvers)
214
+ - Explicit `allowArbitraryExtensions: false` in tsconfig → normal `TS6263` (opt-out)
215
+
216
+ ### Editor / tsserver (tsdk)
217
+
218
+ CLI typecheck (`vue-tsc`, `tsc`) picks up TNB automatically after the override. **The IDE
219
+ does not** — VS Code / Cursor ship their own TypeScript and only use your fork when you
220
+ point **`typescript.tsdk`** at the workspace install and opt in to the workspace version.
221
+
222
+ After `pnpm install`, `node_modules/typescript` **is** TNB (same layout as stock
223
+ `typescript`: `lib/tsserver.js`, `lib/typescript.js`, …). The editor must load that
224
+ `tsserver`, not the built-in one.
225
+
226
+ **1. Add workspace settings** (commit `.vscode/settings.json` for the team):
227
+
228
+ ```jsonc
229
+ // .vscode/settings.json — VS Code and Cursor
230
+ {
231
+ "typescript.tsdk": "node_modules/typescript/lib",
232
+ "typescript.enablePromptUseWorkspaceTsdk": true
233
+ }
234
+ ```
235
+
236
+ Use a path relative to the **workspace folder** that contains `node_modules` (monorepo:
237
+ usually the repo root). With pnpm overrides this resolves to TNB's `lib/` even when the
238
+ physical path is a symlink.
239
+
240
+ **2. Switch to the workspace version (required once per machine / workspace)**
241
+
242
+ Command Palette → **`TypeScript: Select TypeScript Version`** → **Use Workspace Version**.
243
+
244
+ VS Code deliberately does not run workspace `tsserver` until you confirm (security). The
245
+ prompt appears on first open if `typescript.enablePromptUseWorkspaceTsdk` is set; otherwise
246
+ run the command manually.
247
+
248
+ **3. Verify**
249
+
250
+ - Status bar / **TypeScript: Select TypeScript Version** should show a path under
251
+ `node_modules/typescript/lib`, not "VS Code's Version".
252
+ - Open a `.ts` file and trigger type-checking; **View → Output → TypeScript** may show
253
+ **TNB ACTIVE** on first project load (same banner as CLI).
254
+ - Vue/Nuxt: keep `@vue/typescript-plugin` in `tsconfig` `compilerOptions.plugins` as today
255
+ — it runs as a **tsserver LS Plugin** on this fork; no separate tsgo LSP.
256
+
257
+ | Path | Bundle | Used by |
258
+ |---|---|---|
259
+ | `lib/_tsc.js` | CLI | `tsc`, `vue-tsc -b` |
260
+ | `lib/tsserver.js` → `lib/typescript.js` | Language service | IDE, `tsserver`, LS Plugins |
261
+
262
+ ### CLI vs editor (summary)
263
+
264
+ | | CLI | IDE |
265
+ |---|---|---|
266
+ | Needs override | Yes | Yes (same `node_modules/typescript`) |
267
+ | Extra config | No | **`typescript.tsdk` + Use Workspace Version** |
268
+ | Vue LS Plugin | via `vue-tsc` / program API | via forked `tsserver` + `@vue/typescript-plugin` |
269
+
270
+ ---
271
+
272
+ ## CI verification
273
+
274
+ ```bash
275
+ # 1. Confirm resolved package
276
+ node -e "console.log(require.resolve('typescript'))"
277
+
278
+ # 2. Typecheck + require banner (adjust command to your project)
279
+ pnpm exec vue-tsc -b --noEmit 2>&1 | tee /tmp/tsc.log
280
+ grep -F 'TNB ACTIVE' /tmp/tsc.log || { echo 'TNB not active'; exit 1; }
281
+ ```
282
+
283
+ **Linux CI:** The loader supports `bridge.so` / `bridge.dll`, but this repo may
284
+ only ship `bridge.dylib` until you build or publish per-platform binaries. Run
285
+ `npm run build:bridge` on the target OS, or ensure your package artifact includes
286
+ `native/bridge.*` for the runner (see [Platform support](#platform-support)).
287
+
288
+ Debug slow runs: `TSGO_PROFILE=1` prints a `[tsgo-profile]` timing summary to stderr on process exit (not a `.cpuprofile` file).
289
+
290
+ ---
291
+
292
+ ## Troubleshooting
293
+
294
+ ### No banner appears
295
+
296
+ | Check | Action |
297
+ |---|---|
298
+ | Override at workspace **root** | Monorepo: `pnpm-workspace.yaml`, not a leaf package |
299
+ | pnpm 11 | Move `package.json` → `pnpm.overrides` to `pnpm-workspace.yaml` → `overrides:` (pnpm 11 no longer reads the `pnpm` field — silently ignored) |
300
+ | `catalog:` pin | Update catalog **and** overrides (see above) |
301
+ | Stale install | `pnpm install` again; clear CI cache if needed |
302
+ | Wrong resolution | `node -e "console.log(require.resolve('typescript'))"` |
303
+
304
+ ### CLI works, editor doesn't (or vice versa)
305
+
306
+ - **CLI OK, IDE not:** add [Editor / tsserver (tsdk)](#editor--tsserver-tsdk) settings and
307
+ run **TypeScript: Select TypeScript Version → Use Workspace Version**. Override alone is
308
+ not enough for the editor.
309
+ - **IDE OK, CLI not:** run `node -e "console.log(require.resolve('typescript'))"` — should
310
+ point at TNB. Reinstall after changing overrides.
311
+ - CLI and IDE must both resolve the same `node_modules/typescript` (same override at
312
+ monorepo root).
313
+
314
+ ### Type errors differ from stock TypeScript
315
+
316
+ TNB is experimental; tsgo parity with JS TypeScript is not 100%. Pin a version, diff
317
+ results, and report gaps. This is expected during early adoption.
318
+
319
+ ### Missing native bridge
320
+
321
+ Error mentioning `bridge.dylib` / `bridge.so` / `bridge.dll` → run `npm run setup` in
322
+ this repo or ensure published artifacts include your platform.
323
+
324
+ ---
325
+
326
+ ## Platform support
327
+
328
+ | OS | Native library | Notes |
329
+ |---|---|---|
330
+ | macOS | `native/bridge.dylib` | Primary dev target; may be the only prebuilt binary in a dev clone |
331
+ | Linux | `native/bridge.so` | Build with `npm run build:bridge` on Linux for CI |
332
+ | Windows | `native/bridge.dll` | Supported by loader; build on Windows |
333
+
334
+ End users of a **published** package need prebuilt binaries per platform. Contributors
335
+ build locally with Go + a C toolchain (`npm run build:bridge`).
336
+
337
+ ---
338
+
339
+ ## Uninstall / rollback
340
+
341
+ Remove the `typescript` override from `pnpm-workspace.yaml` / `package.json`, reinstall,
342
+ and confirm:
343
+
344
+ ```bash
345
+ pnpm install
346
+ node -e "console.log(require.resolve('typescript'))" # should be stock typescript@5.x
347
+ ```
348
+
349
+ No source changes in your app are required to roll back.
350
+
351
+ ---
352
+
353
+ ## FAQ
354
+
355
+ **Do I need to change my code?**
356
+ No.
357
+
358
+ **Do I configure `vue-tsc` or ESLint separately?**
359
+ No. They import `typescript`; one override covers them.
360
+
361
+ **Is this the same as `@typescript/native-preview`?**
362
+ No. TNB replaces the full `typescript` package with an in-process Go bridge and Volar/SFC
363
+ integration. `@typescript/native-preview` ships the separate `tsgo` CLI (and preview JS
364
+ API) alongside stock `typescript` — you change scripts to call `tsgo`, not `tsc`.
365
+
366
+ **How much faster is it?**
367
+ Depends on project size and shape; large `vue-tsc -b` workloads are the main target.
368
+ Measure on your repo with and without the override.
369
+
370
+ ---
371
+
372
+ ## Developing TNB (contributors)
373
+
374
+ > End users can skip this section. Consuming a **prebuilt** clone (with `lib/` +
375
+ > `native/bridge.*` already present) does not require Go. Building TNB from source
376
+ > in this repo requires Go, submodules, and `npm run setup`.
377
+
378
+ ### First-time setup
379
+
380
+ ```bash
381
+ git clone --recurse-submodules <repo>
382
+ cd typescript-native-bridge
383
+ npm run setup # submodules + vendor JS + native bridge + lib/
384
+ ```
385
+
386
+ ### All scripts
387
+
388
+ | Script | Purpose |
389
+ |---|---|
390
+ | `setup` | Full first-time build (everything below) |
391
+ | `build:lib` | **Daily:** overlay → compile → LKG (~6s) |
392
+ | `build:ts` | Cold build (+ `npm install` in typescript submodule) |
393
+ | `build:js` | Compile `typescript-go` native-preview vendor (needed for bridge API types) |
394
+ | `build:bridge` | Rebuild Go `native/bridge.{dylib,so,dll}` |
395
+ | `patch:ts` | Apply `patches/typescript/` to submodule |
396
+ | `patch:tsgo` | Apply `patches/typescript-go/` to submodule |
397
+ | `save-ts-patches` | Save typescript submodule changes → `patches/typescript/` |
398
+ | `save-patches` | Save typescript-go submodule changes → `patches/typescript-go/` |
399
+ | `check:lib-sync` | Verify overlay / submodule / `lib/` are aligned |
400
+ | `check:enums` | Validate TS↔Go enum remapping tables |
401
+
402
+ ### Two patch trees, three artifact families
403
+
404
+ ```
405
+ patches/typescript/overlay/ ← TypeScript-side changes (edit here)
406
+ patches/typescript-go/overlay/ ← Go bridge changes (edit here)
407
+ ↓ patch + build
408
+ lib/ JS bundles (typescript.js + _tsc.js)
409
+ native/ platform bridge binary
410
+ vendor/ native-preview JS (from build:js)
411
+ ```
412
+
413
+ **TypeScript overlay workflow**
414
+
415
+ ```
416
+ patches/typescript/overlay/
417
+ ↓ npm run patch:ts (also run by build:lib)
418
+ typescript/ submodule ← do not edit by hand
419
+ ↓ npm run build:lib
420
+ lib/typescript.js ← tsserver
421
+ lib/_tsc.js ← tsc, vue-tsc
422
+ ```
423
+
424
+ Never hand-edit `lib/*.js` or `typescript/src/`. Always rebuild both bundles via
425
+ `build:lib`. Run `npm run check:lib-sync` before committing.
426
+
427
+ **Go / bridge workflow**
428
+
429
+ ```
430
+ patches/typescript-go/overlay/
431
+ ↓ npm run patch:tsgo
432
+ typescript-go/ submodule
433
+ ↓ npm run build:bridge
434
+ native/bridge.*
435
+ ```
436
+
437
+ After editing either submodule working tree: `save-ts-patches` or `save-patches` before commit.
438
+
439
+ **Changing enums between TS and Go:** run `npm run check:enums`.
440
+
441
+ ---
442
+
443
+ ## License
444
+
445
+ Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
446
+
447
+ This package is a derivative work of [Microsoft TypeScript](https://github.com/microsoft/TypeScript)
448
+ and [microsoft/typescript-go](https://github.com/microsoft/typescript-go).
package/bin/tsc ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('../lib/tsc.js')
package/bin/tsserver ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('../lib/tsserver.js')
@@ -0,0 +1 @@
1
+ * text eol=lf