Skip to content

Commit

Permalink
Export types for extension constructor options (#9137)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed Oct 2, 2024
1 parent 278d31b commit 509f061
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export type DataFilterExtensionProps<DataT = any> = {
}) => void;
};

type DataFilterExtensionOptions = {
export type DataFilterExtensionOptions = {
/**
* The size of the category filter (number of columns to filter by). The category filter can show/hide data based on 1-4 properties of each object. Set to `0` to disable category filtering.
* @default 0
Expand Down
2 changes: 1 addition & 1 deletion modules/extensions/src/fill-style/fill-style-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export type FillStyleExtensionProps<DataT = any> = {
getFillPatternOffset?: Accessor<DataT, [number, number]>;
};

type FillStyleExtensionOptions = {
export type FillStyleExtensionOptions = {
/** If `true`, adds the ability to tile the filled area with a pattern.
* @default false
*/
Expand Down
15 changes: 12 additions & 3 deletions modules/extensions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ export {default as project64} from './fp64/project64';

// Types
export type {BrushingExtensionProps} from './brushing/brushing-extension';
export type {DataFilterExtensionProps} from './data-filter/data-filter-extension';
export type {PathStyleExtensionProps} from './path-style/path-style-extension';
export type {FillStyleExtensionProps} from './fill-style/fill-style-extension';
export type {
DataFilterExtensionProps,
DataFilterExtensionOptions
} from './data-filter/data-filter-extension';
export type {
PathStyleExtensionProps,
PathStyleExtensionOptions
} from './path-style/path-style-extension';
export type {
FillStyleExtensionProps,
FillStyleExtensionOptions
} from './fill-style/fill-style-extension';
export type {ClipExtensionProps} from './clip/clip-extension';
export type {CollisionFilterExtensionProps} from './collision-filter/collision-filter-extension';
export type {MaskExtensionProps} from './mask/mask-extension';
Expand Down
2 changes: 1 addition & 1 deletion modules/extensions/src/path-style/path-style-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export type PathStyleExtensionProps<DataT = any> = {
dashGapPickable?: boolean;
};

type PathStyleExtensionOptions = {
export type PathStyleExtensionOptions = {
/**
* Add capability to render dashed lines.
* @default false
Expand Down

0 comments on commit 509f061

Please sign in to comment.