state-toggle
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -8,5 +8,5 @@ /** | ||
* @param {boolean} state | ||
* @param {*} ctx | ||
* @returns {() => Function} | ||
* @param {Record<string, any>} [ctx] | ||
* @returns {() => () => void} | ||
*/ | ||
export function stateToggle(key: string, state: boolean, ctx: any): () => Function; | ||
export function stateToggle(key: string, state: boolean, ctx?: Record<string, any>): () => () => void; |
@@ -8,4 +8,4 @@ /** | ||
* @param {boolean} state | ||
* @param {*} ctx | ||
* @returns {() => Function} | ||
* @param {Record<string, any>} [ctx] | ||
* @returns {() => () => void} | ||
*/ | ||
@@ -17,2 +17,3 @@ export function stateToggle(key, state, ctx) { | ||
* Bound enter function to set `state` as `key` on `ctx`. | ||
* @this {Record<string, any>} | ||
* @returns {() => void} | ||
@@ -19,0 +20,0 @@ */ |
{ | ||
"name": "state-toggle", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Enter/exit a state", | ||
@@ -30,2 +30,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@types/tape": "^4.0.0", | ||
"c8": "^7.0.0", | ||
@@ -32,0 +33,0 @@ "prettier": "^2.0.0", |
5913
41
9