chore: fix repo biome lint errors (#804)

This commit is contained in:
rahim
2026-03-09 21:10:18 -07:00
committed by GitHub
parent 5f729ed904
commit bd4e47b783
13 changed files with 53 additions and 38 deletions
+2 -2
View File
@@ -3,14 +3,14 @@ export type StateAttrMap<State> = {
};
/** Constraint for core UI classes that compute component state. */
export interface UIComponent<Props = {}, State extends object = object> {
export interface UIComponent<Props = object, State extends object = object> {
getState(): State;
setProps?(props: Props): void;
getAttrs?(state: State): object;
}
/** Constraint for core UI classes that derive component state from media state. */
export interface MediaUIComponent<Props = {}, State extends object = object> extends UIComponent<Props, State> {
export interface MediaUIComponent<Props = object, State extends object = object> extends UIComponent<Props, State> {
setMedia(media: object): void;
}