mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(site): add util reference pipeline (#537)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
c11395ece1
commit
78112fbefd
@@ -25,7 +25,18 @@ export class SnapshotController<T extends object, R = T> implements ReactiveCont
|
||||
#cached: R | undefined;
|
||||
#unsubscribe = noop;
|
||||
|
||||
/**
|
||||
* @label Without Selector
|
||||
* @param host - The host element that owns this controller.
|
||||
* @param state - The State container to subscribe to.
|
||||
*/
|
||||
constructor(host: ReactiveControllerHost, state: State<T>);
|
||||
/**
|
||||
* @label With Selector
|
||||
* @param host - The host element that owns this controller.
|
||||
* @param state - The State container to subscribe to.
|
||||
* @param selector - Derives a value from the state.
|
||||
*/
|
||||
constructor(host: ReactiveControllerHost, state: State<T>, selector: Selector<T, R>);
|
||||
constructor(host: ReactiveControllerHost, state: State<T>, selector?: Selector<T, R>) {
|
||||
this.#host = host;
|
||||
|
||||
@@ -45,7 +45,18 @@ export class StoreController<Store extends AnyStore, Result = Store> implements
|
||||
|
||||
#snapshot: SnapshotController<object, Result> | null = null;
|
||||
|
||||
/**
|
||||
* @label Without Selector
|
||||
* @param host - The host element that owns this controller.
|
||||
* @param source - Store instance or context to resolve the store from.
|
||||
*/
|
||||
constructor(host: StoreControllerHost, source: StoreSource<Store>);
|
||||
/**
|
||||
* @label With Selector
|
||||
* @param host - The host element that owns this controller.
|
||||
* @param source - Store instance or context to resolve the store from.
|
||||
* @param selector - Derives a value from the store state.
|
||||
*/
|
||||
constructor(
|
||||
host: StoreControllerHost,
|
||||
source: StoreSource<Store>,
|
||||
|
||||
@@ -42,6 +42,11 @@ export class SubscriptionController<Store extends AnyStore, Value> implements Re
|
||||
|
||||
#unsubscribe = noop;
|
||||
|
||||
/**
|
||||
* @param host - The host element that owns this controller.
|
||||
* @param source - Store instance or context to resolve the store from.
|
||||
* @param config - Subscription and value extraction configuration.
|
||||
*/
|
||||
constructor(
|
||||
host: SubscriptionControllerHost,
|
||||
source: StoreSource<Store>,
|
||||
|
||||
Reference in New Issue
Block a user