Skip to content

Commit

Permalink
chore: fix type err
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed Nov 13, 2024
1 parent e2c3471 commit d69dc92
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"lint:ts": "eslint src --ext .ts,.tsx",
"lint:ts-fix": "pnpm lint:ts --fix",
"test:unit": "jest --config ./jest.config.ts",
"test:size": "pn build && limit-size",
"test:size": "pnpm build && limit-size",
"changeset": "changeset add",
"publish-version": "changeset version && node scripts/sync-version",
"publish-packages": "pnpm build && changeset publish"
Expand All @@ -65,6 +65,7 @@
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@types/jest": "^29.5.14",
"@types/lodash": "^4.17.13",
"@types/react": "^18.0.0",
"antd": "^5.0.0",
"dumi": "^2.4.13",
Expand Down Expand Up @@ -118,7 +119,7 @@
"limit-size": [
{
"path": "dist/umd/index.js",
"limit": "3 Mb"
"limit": "5 Mb"
}
],
"publishConfig": {
Expand Down
6 changes: 4 additions & 2 deletions src/ChartCodeRender/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const withCodeBlock = (options: WithChartCodeOptions): CodeBlockComponent => {
};

// Create a higher-order component (HOC) with chart code
export const withChartCode = (options: WithChartCodeOptions) => {
export const withChartCode = (options: WithChartCodeOptions): CodeBlockComponent => {
return withCodeBlock(options);
};

Expand All @@ -65,7 +65,9 @@ export const withChartCode = (options: WithChartCodeOptions) => {
* @param componentsArray
* @returns
*/
export const withDefaultChartCode = (options?: Partial<WithChartCodeOptions>) => {
export const withDefaultChartCode = (
options?: Partial<WithChartCodeOptions>,
): CodeBlockComponent => {
return withChartCode({
...options,
components: {
Expand Down
2 changes: 1 addition & 1 deletion src/ConfigProvider/hooks/useConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function usePlotConfig<T extends CommonConfig>(
name: Charts,
defaultConfig: Partial<T> | ((props: Partial<T>) => Partial<T>),
props: Partial<T>,
) {
): Partial<T> {
const transformedProps = transform2ADCProps(props);

const _defaultConfig =
Expand Down

0 comments on commit d69dc92

Please sign in to comment.