Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jun 21, 2024
1 parent 66b977c commit 446cf37
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion packages/components/src/menu-items-choice/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export type MenuItemsChoiceProps = {
* Callback function to be called with the selected choice when user
* selects a new choice.
*/
onSelect( value: string ): void;
onSelect: ( value: string ) => void;

/**
* Callback function to be called with a choice when user
* hovers over a new choice (will be empty on mouse leave).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface UseResizeLabelProps {
interface UseResizeLabelArgs {
axis?: Axis;
fadeTimeout: number;
onResize( data: { width: number | null; height: number | null } ): void;
onResize: ( data: { width: number | null; height: number | null } ) => void;
position: Position;
showPx: boolean;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/compose/src/utils/debounce/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface DebouncedFunc< T extends ( ...args: any[] ) => any > {
/**
* Throw away any pending invocation of the debounced function.
*/
cancel(): void;
cancel: () => void;

/**
* If there is a pending invocation of the debounced function, invoke it immediately and return
Expand All @@ -68,7 +68,7 @@ export interface DebouncedFunc< T extends ( ...args: any[] ) => any > {
* Otherwise, return the value from the last invocation, or undefined if the debounced function
* was never invoked.
*/
flush(): ReturnType< T > | undefined;
flush: () => ReturnType< T > | undefined;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions packages/compose/src/utils/observable-map/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export type ObservableMap< K, V > = {
get( name: K ): V | undefined;
set( name: K, value: V ): void;
delete( name: K ): void;
subscribe( name: K, listener: () => void ): () => void;
get: ( name: K ) => V | undefined;
set: ( name: K, value: V ) => void;
delete: ( name: K ) => void;
subscribe: ( name: K, listener: () => void ) => () => void;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/dataviews/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export interface ViewBaseProps< Item extends AnyItem > {
fields: NormalizedField< Item >[];
getItemId: ( item: Item ) => string;
isLoading?: boolean;
onChangeView( view: View ): void;
onChangeView: ( view: View ) => void;
onSelectionChange: ( items: Item[] ) => void;
selection: string[];
setOpenedFilter: ( fieldId: string ) => void;
Expand Down

0 comments on commit 446cf37

Please sign in to comment.