mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
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:
co-authored by
Claude Opus 4.6
parent
01c4c60848
commit
c3984f74d1
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
site/scripts/api-docs-builder/src/tests/fixtures/monorepo/packages/react/src/player/create-player.ts
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user