jaxs 0.9.4 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jaxs.d.ts +7 -7
- package/dist/jaxs.js +239 -234
- package/dist/jaxs.umd.cjs +210 -205
- package/package.json +1 -1
package/dist/jaxs.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Subscribe as Subscribe_2 } from '.'
|
|
|
6
6
|
export declare class App {
|
|
7
7
|
window: Window
|
|
8
8
|
document: Document
|
|
9
|
-
publish:
|
|
9
|
+
publish: PublishExtended<any>
|
|
10
10
|
subscribe: Subscribe
|
|
11
11
|
bus: JaxsBus
|
|
12
12
|
state: State
|
|
@@ -184,7 +184,7 @@ declare const createBus: () => {
|
|
|
184
184
|
|
|
185
185
|
declare const createRouteState: (state: State) => void
|
|
186
186
|
|
|
187
|
-
declare const createState: (publisher:
|
|
187
|
+
declare const createState: (publisher: PublishExtended<any>) => State
|
|
188
188
|
|
|
189
189
|
declare type CustomPeriodicOptions = {
|
|
190
190
|
timer: PeriodicTimerFunction
|
|
@@ -299,7 +299,7 @@ declare class JaxsBus {
|
|
|
299
299
|
event: string,
|
|
300
300
|
payload: T,
|
|
301
301
|
): {
|
|
302
|
-
publish: any
|
|
302
|
+
publish: PublishExtended<any>
|
|
303
303
|
payload: T
|
|
304
304
|
state: State
|
|
305
305
|
document: Document
|
|
@@ -433,7 +433,7 @@ declare type ListenerKit<T> = {
|
|
|
433
433
|
state: State_2
|
|
434
434
|
document: Document
|
|
435
435
|
window: Window
|
|
436
|
-
publish:
|
|
436
|
+
publish: PublishExtended<any>
|
|
437
437
|
eventName: string
|
|
438
438
|
payload: T
|
|
439
439
|
}
|
|
@@ -552,7 +552,7 @@ declare interface PublishExtended<T> extends Publish<T> {
|
|
|
552
552
|
) => Unsubscribe
|
|
553
553
|
}
|
|
554
554
|
|
|
555
|
-
declare type PublishFromDom_2 =
|
|
555
|
+
declare type PublishFromDom_2 = PublishExtended<Event>
|
|
556
556
|
|
|
557
557
|
declare const publishLocation: (app: App) => void
|
|
558
558
|
|
|
@@ -656,12 +656,12 @@ declare namespace start {
|
|
|
656
656
|
declare const startNavigation: (app: App) => void
|
|
657
657
|
|
|
658
658
|
export declare class State {
|
|
659
|
-
publisher:
|
|
659
|
+
publisher: PublishExtended<any>
|
|
660
660
|
stores: StoresCollection
|
|
661
661
|
eventNamePrefix: string
|
|
662
662
|
notifications: Set<string>
|
|
663
663
|
inTransaction: boolean
|
|
664
|
-
constructor(publisher:
|
|
664
|
+
constructor(publisher: PublishExtended<any>)
|
|
665
665
|
create<T>(name: string, initialState: T): Store<T>
|
|
666
666
|
store<T>(name: string): Store<T>
|
|
667
667
|
get<T>(name: string): T
|