@hazae41/glacier
Advanced tools
Comparing version 2.0.0-97 to 2.0.0-98
/** | ||
* Orthogonal state publisher | ||
*/ | ||
declare class CustomEventTarget<T> { | ||
declare class CustomEventTarget<M extends Record<string, any>> { | ||
#private; | ||
dispatchEvent(event: CustomEvent<T>): boolean; | ||
addEventListener(type: string, callback: (event: CustomEvent<T>) => void, options?: AddEventListenerOptions): void; | ||
removeListener(type: string, callback: (event: CustomEvent<T>) => void): void; | ||
dispatchEvent(event: CustomEvent<M[string]>): boolean; | ||
addEventListener<K extends keyof M>(type: K, callback: (event: CustomEvent<M[K]>) => void, options?: AddEventListenerOptions): void; | ||
removeListener<K extends keyof M>(type: K, callback: (event: CustomEvent<M[K]>) => void): void; | ||
} | ||
export { CustomEventTarget }; |
@@ -46,4 +46,8 @@ import { Nullable, Option } from '@hazae41/option'; | ||
#private; | ||
readonly onState: CustomEventTarget<State<any, any>>; | ||
readonly onAborter: CustomEventTarget<Nullable<AbortController>>; | ||
readonly onState: CustomEventTarget<{ | ||
[cacheKey: string]: State<any, any>; | ||
}>; | ||
readonly onAborter: CustomEventTarget<{ | ||
[cacheKey: string]: Nullable<AbortController>; | ||
}>; | ||
readonly raw: Map<string, Option<RawState>>; | ||
@@ -50,0 +54,0 @@ constructor(); |
@@ -9,2 +9,3 @@ import { Nullable } from '@hazae41/option'; | ||
import { ScrollSkeletonQuery, ScrollFetcherfulQuery, ScrollFetcherlessQuery } from '../react/hooks/queries/scroll.js'; | ||
import { CustomEventTarget } from '../../libs/ortho/ortho.js'; | ||
import { NormalizerMore } from '../types/normalizer.js'; | ||
@@ -33,3 +34,8 @@ | ||
readonly cacheKey: string; | ||
readonly events: CustomEventTarget<{ | ||
state: State<D, F>; | ||
}>; | ||
readonly dispose: () => void; | ||
constructor(settings: ScrollFetcherfulQuerySettings<K, D, F>); | ||
[Symbol.dispose](): void; | ||
normalize(fetched: Nullable<Fetched<D[], F>>, more: NormalizerMore): Promise<void>; | ||
@@ -36,0 +42,0 @@ get state(): Promise<State<D[], F>>; |
@@ -8,2 +8,3 @@ import { Nullable } from '@hazae41/option'; | ||
import { State } from '../types/state.js'; | ||
import { CustomEventTarget } from '../../libs/ortho/ortho.js'; | ||
import { NormalizerMore } from '../types/normalizer.js'; | ||
@@ -34,3 +35,8 @@ import { SimpleSkeletonQuery, SimpleFetcherlessQuery, SimpleFetcherfulQuery } from '../react/hooks/queries/single.js'; | ||
readonly cacheKey: string; | ||
readonly events: CustomEventTarget<{ | ||
state: State<D, F>; | ||
}>; | ||
readonly dispose: () => void; | ||
constructor(settings: FetcherlessQuerySettings<K, D, F>); | ||
[Symbol.dispose](): void; | ||
normalize(fetched: Nullable<Fetched<D, F>>, more: NormalizerMore): Promise<void>; | ||
@@ -37,0 +43,0 @@ get state(): Promise<State<D, F>>; |
{ | ||
"type": "module", | ||
"name": "@hazae41/glacier", | ||
"version": "2.0.0-97", | ||
"version": "2.0.0-98", | ||
"author": "hazae41", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
575500
6235