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
kylebarron authored Sep 29, 2024
1 parent eac6f42 commit 2e9d6dc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
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 @@ -73,7 +73,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 @@ -17,9 +17,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 @@ -45,7 +45,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 2e9d6dc

Please sign in to comment.