Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zuofenghua committed Jul 11, 2022
1 parent 3acfae5 commit 5303f6f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
7 changes: 5 additions & 2 deletions src/useOLAP/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { useFilters } from './useFilters';
import { useCubeSettings } from './useCubeSettings';
import { useCubeData } from './useCubeData';

export type {
export {
SourceData,
Columns,
PassedInCubeOptions,
Expand Down Expand Up @@ -70,7 +70,10 @@ export function useOLAP<T>(
);

return {
cubeD1, cubeD2, chartCubeD1, chartCubeD2,
cubeD1,
cubeD2,
chartCubeD1,
chartCubeD2,
columns: setting.columns,
cubeSettings,
cubeOptions,
Expand Down
15 changes: 9 additions & 6 deletions src/useSize/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { BasicTarget } from '../utils/dom';
export interface TargetSize {
width: undefined | number;
height: undefined | number;
width: undefined | number;
height: undefined | number;
}
export interface UseSizeOptions {
onChange?: (size: TargetSize) => void;
onChange?: (size: TargetSize) => void;
}
export declare function useSize(target: BasicTarget, options?: UseSizeOptions): {
width: number;
height: number;
export declare function useSize(
target: BasicTarget,
options?: UseSizeOptions,
): {
width: number;
height: number;
};

0 comments on commit 5303f6f

Please sign in to comment.