@rallie/core
Advanced tools
Comparing version 0.6.7 to 0.6.8
@@ -8,5 +8,5 @@ import type { CallbackType } from '../types'; | ||
removeBroadcastEventListener(event: string, callback: CallbackType): void; | ||
removeUnicastEventListener(event: string, callback: CallbackType): void; | ||
removeUnicastEventListener(event: string): void; | ||
emitBroadcast(event: string, ...args: any[]): void; | ||
emitUnicast(event: string, ...args: any[]): any; | ||
} |
@@ -50,5 +50,6 @@ import type { EventEmitter } from './event-emitter'; | ||
* @param namespace | ||
* @param arg | ||
* @param action | ||
* @param setter | ||
*/ | ||
setState<T = any>(namespace: string, setter: (state: T) => void | Promise<void>): Promise<void>; | ||
setState<T = any>(namespace: string, action: string, setter: (state: T) => void | Promise<void>): Promise<void>; | ||
/** | ||
@@ -59,3 +60,3 @@ * watch the change of state | ||
*/ | ||
watchState<T = any, P = any>(namespace: string, getter: (state: T, isWatchingEffect?: boolean) => undefined | P): Watcher<P>; | ||
watchState<T = any, P = any>(namespace: string, getter: (state: T) => undefined | P): Watcher<P>; | ||
/** | ||
@@ -62,0 +63,0 @@ * waiting for some states to be initialized |
@@ -7,3 +7,2 @@ import type { MiddlewareFnType, NextFnType, ContextType, DependencyType, RelateType } from '../types'; | ||
removeNonExistedUnicast: (eventName: string) => string; | ||
wrongUnicastCallback: (eventName: string) => string; | ||
registedExistedUnicast: (eventName: string) => string; | ||
@@ -15,2 +14,3 @@ emittedNonExistedUnicast: (eventName: string) => string; | ||
modifyPrivateState: (namespace: string) => string; | ||
actionIsNotDefined: (namespace: string) => string; | ||
accessUninitializedState: (namespace: string) => string; | ||
@@ -17,0 +17,0 @@ waitStateTimeout: (namespaces: string[]) => string; |
{ | ||
"name": "@rallie/core", | ||
"version": "0.6.7", | ||
"version": "0.6.8", | ||
"description": "a progressive micro front framework", | ||
@@ -28,3 +28,3 @@ "main": "./dist/index.umd.js", | ||
"homepage": "https://github.com/ralliejs/rallie#readme", | ||
"gitHead": "dab5213cdb15b18b2d765d856f8aa8ce1c724729" | ||
"gitHead": "66b039ceefc02dc039f96d7f8ff58da4099df4a3" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
171454
4215