@mantine/store
Advanced tools
Comparing version 7.1.3 to 7.1.4
export type MantineStoreSubscriber<Value> = (value: Value) => void; | ||
type SetStateCallback<Value> = (value: Value) => Value; | ||
export interface MantineStore<Value> { | ||
getState(): Value; | ||
setState(value: Value | SetStateCallback<Value>): void; | ||
updateState(value: Value | SetStateCallback<Value>): void; | ||
initialize(value: Value): void; | ||
subscribe(callback: MantineStoreSubscriber<Value>): () => void; | ||
getState: () => Value; | ||
setState: (value: Value | SetStateCallback<Value>) => void; | ||
updateState: (value: Value | SetStateCallback<Value>) => void; | ||
initialize: (value: Value) => void; | ||
subscribe: (callback: MantineStoreSubscriber<Value>) => () => void; | ||
} | ||
@@ -10,0 +10,0 @@ export type MantineStoreValue<Store extends MantineStore<any>> = ReturnType<Store['getState']>; |
{ | ||
"name": "@mantine/store", | ||
"version": "7.1.3", | ||
"version": "7.1.4", | ||
"main": "./cjs/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./lib/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10154