mirror of
https://github.com/zoriya/v10.git
synced 2026-08-12 00:49:29 +00:00
chore(ci): add explicit checks and Claude diagnosis (#664)
This commit is contained in:
+1
-3
@@ -10,10 +10,8 @@ interface ReactiveController {
|
||||
|
||||
/** Manages the video player lifecycle. */
|
||||
export class PlayerController implements ReactiveController {
|
||||
#host: ReactiveControllerHost;
|
||||
|
||||
constructor(host: ReactiveControllerHost) {
|
||||
this.#host = host;
|
||||
host.addController(this);
|
||||
}
|
||||
|
||||
/** Whether the player is ready. */
|
||||
|
||||
Vendored
-4
@@ -1,7 +1,3 @@
|
||||
interface Store<S> {
|
||||
getState(): S;
|
||||
}
|
||||
|
||||
type SelectorFn<S, R> = (state: S) => R;
|
||||
|
||||
/** Create a memoized selector function. */
|
||||
|
||||
+1
-3
@@ -14,8 +14,6 @@ interface Store<S> {
|
||||
|
||||
/** Takes a snapshot of store state. */
|
||||
export class SnapshotController<S, R = S> implements ReactiveController {
|
||||
#host: ReactiveControllerHost;
|
||||
|
||||
/**
|
||||
* @param host - The host element.
|
||||
* @param state - The store to snapshot.
|
||||
@@ -28,7 +26,7 @@ export class SnapshotController<S, R = S> implements ReactiveController {
|
||||
*/
|
||||
constructor(host: ReactiveControllerHost, state: Store<S>);
|
||||
constructor(host: ReactiveControllerHost, state: Store<S>, selector?: (state: S) => R) {
|
||||
this.#host = host;
|
||||
host.addController(this);
|
||||
}
|
||||
|
||||
/** The current snapshot value. */
|
||||
|
||||
Reference in New Issue
Block a user