fix(site): add astro check CI and reduce errors/hints (#1109)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-04-22 10:18:05 -05:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 01c4c60848
commit c3984f74d1
52 changed files with 385 additions and 339 deletions
@@ -8,6 +8,6 @@ interface HtmlPlayerOptions {
}
/** Create an HTML player instance. */
export function createPlayer(options: HtmlPlayerOptions): HtmlPlayerInstance {
export function createPlayer(_options: HtmlPlayerOptions): HtmlPlayerInstance {
return {} as HtmlPlayerInstance;
}
@@ -11,6 +11,6 @@ interface StoreState {
/** Access the player store or select state from it. */
export function usePlayer(): PlayerStore;
export function usePlayer<R>(selector: (state: StoreState) => R): R;
export function usePlayer<R>(selector?: (state: StoreState) => R): PlayerStore | R {
export function usePlayer<R>(_selector?: (state: StoreState) => R): PlayerStore | R {
return {} as PlayerStore | R;
}
@@ -8,6 +8,6 @@ interface PlayerOptions {
}
/** Create a React player instance. */
export function createPlayer(options?: PlayerOptions): PlayerInstance {
export function createPlayer(_options?: PlayerOptions): PlayerInstance {
return {} as PlayerInstance;
}
@@ -25,7 +25,7 @@ export class SnapshotController<S, R = S> implements ReactiveController {
* @param state - The store to snapshot.
*/
constructor(host: ReactiveControllerHost, state: Store<S>);
constructor(host: ReactiveControllerHost, state: Store<S>, selector?: (state: S) => R) {
constructor(host: ReactiveControllerHost, _state: Store<S>, _selector?: (state: S) => R) {
host.addController(this);
}
@@ -5,6 +5,6 @@ interface Store<S> {
/** Subscribe to a store. */
export function useStore<S>(store: Store<S>): S;
export function useStore<S, R>(store: Store<S>, selector: (state: S) => R): R;
export function useStore<S, R>(store: Store<S>, selector?: (state: S) => R): S | R {
export function useStore<S, R>(_store: Store<S>, _selector?: (state: S) => R): S | R {
return {} as S | R;
}