Skip to content

Commit

Permalink
updated @typhonjs-svelte/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonrt committed Jan 18, 2022
1 parent 96a1bb1 commit 12c451f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
11 changes: 10 additions & 1 deletion _dist/store/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ declare class TJSGameSettings {
registerAll(settings: Iterable<GameSetting>): void;
#private;
}
/**
* Provides a basic test for a given variable to test if it has the shape of a store by having a `subscribe` function.
* Note: functions are also objects, so test that the variable might be a function w/ a `subscribe` function.
*
* @param {*} store - variable to test that might be a store.
*
* @returns {boolean} Whether the variable tested has the shape of a store.
*/
declare function isStore(store: any): boolean;
/**
* Create a store for a property value in an object contained in another store.
* [Read more...](https://github.com/PixievoltNo1/svelte-writable-derived#named-export-propertystore)
Expand Down Expand Up @@ -214,4 +223,4 @@ declare function writableDerived(origins: any | any[], derive: Function, reflect
withOld: Function;
}, initial?: any): any;

export { GSStore, GameSetting, LSStore, LocalStorage, SSStore, SessionStorage, TJSGameSettings, propertyStore, subscribeFirstRest, subscribeIgnoreFirst, writableDerived };
export { GSStore, GameSetting, LSStore, LocalStorage, SSStore, SessionStorage, TJSGameSettings, isStore, propertyStore, subscribeFirstRest, subscribeIgnoreFirst, writableDerived };
24 changes: 23 additions & 1 deletion _dist/store/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 12c451f

Please sign in to comment.