Skip to content

Commit

Permalink
chore(types): constrain parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jan 18, 2024
1 parent 484487c commit f6cbd5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/base-zone/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import { makeExo, defineExoClass, defineExoClassKit } from '@endo/exo';
* @typedef {object} Stores
* @property {() => Stores} detached obtain store providers which are detached (the stores are anonymous rather than bound to `label` in the zone)
* @property {(specimen: unknown) => boolean} isStorable return true if the specimen can be stored in the zone, whether as exo-object state or in a store
* @property {<K,V>(label: string, options?: StoreOptions) => MapStore<K, V>} mapStore provide a Map-like store named `label` in the zone
* @property {<K>(label: string, options?: StoreOptions) => SetStore<K>} setStore provide a Set-like store named `label` in the zone
* @property {<K,V>(
* @property {<K extends Key, V extends Passable>(label: string, options?: StoreOptions) => MapStore<K, V>} mapStore provide a Map-like store named `label` in the zone
* @property {<K extends Key>(label: string, options?: StoreOptions) => SetStore<K>} setStore provide a Set-like store named `label` in the zone
* @property {<K extends Key, V extends Passable>(
* label: string, options?: StoreOptions) => WeakMapStore<K, V>
* } weakMapStore provide a WeakMap-like store named `label` in the zone
* @property {<K>(
* @property {<K extends Key>(
* label: string, options?: StoreOptions) => WeakSetStore<K>
* } weakSetStore provide a WeakSet-like store named `label` in the zone
*/
2 changes: 1 addition & 1 deletion packages/store/src/stores/scalarSetStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { makeCurrentKeysKit } from './store-utils.js';
const { quote: q } = assert;

/**
* @template K
* @template {Key} K
* @param {Set<K>} jsset
* @param {(k: K) => void} assertKeyOkToAdd
* @param {(k: K) => void} [assertKeyOkToDelete]
Expand Down

0 comments on commit f6cbd5f

Please sign in to comment.