@stacksjs/stx-vscode 0.2.762 → 0.2.765

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacksjs/stx-typescript-plugin",
3
- "version": "0.2.762",
3
+ "version": "0.2.765",
4
4
  "private": true,
5
5
  "main": "index.js"
6
6
  }
@@ -937,6 +937,10 @@ declare function defineStore<S extends Record<string, any>, G extends Record<str
937
937
  persist?: boolean | StxStorePersistOptions
938
938
  },
939
939
  ): () => S & G & A
940
+ // An app declares its stores here, by id, to type useStore('name'); see the
941
+ // StoreRegistry in state-management.ts for the module-import spelling.
942
+ interface StxStoreRegistry {}
943
+ declare function useStore<K extends keyof StxStoreRegistry>(_id: K): StxStoreRegistry[K]
940
944
  declare function useStore<T = any>(_id: string): T
941
945
  declare function registerStoresClient(_stores: Record<string, unknown>): void
942
946
  // createStore / createSelector are exported by state-management.ts for server
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/stx-vscode",
3
3
  "type": "module",
4
- "version": "0.2.762",
4
+ "version": "0.2.765",
5
5
  "description": "stx language support for VS Code extensions to embed: the hovers, completions, diagnostics, grammar, snippets, language configuration and TypeScript server plugin behind the stx extension.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",