Skip to content

Commit

Permalink
Fix errors in defaultPropsHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Nov 24, 2022
1 parent f6f4e72 commit 03fe140
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions docs/packages/apiDocsBuilder/utils/defaultPropsHandler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import astTypes from 'ast-types';
import { namedTypes as types } from 'ast-types';
import { parse as parseDoctrine, Annotation } from 'doctrine';
import { utils as docgenUtils, NodePath, Documentation, Importer, Handler } from 'react-docgen';

Expand All @@ -7,8 +7,6 @@ const { getPropertyName, isReactForwardRefCall, printValue, resolveToValue } = d
// based on https://github.com/reactjs/react-docgen/blob/735f39ef784312f4c0e740d4bfb812f0a7acd3d5/src/handlers/defaultPropsHandler.js#L1-L112
// adjusted for material-ui getThemedProps

const { namedTypes: types } = astTypes;

/**
* @param {import('react-docgen').NodePath} propertyPath
* @param {import('react-docgen').Importer} importer
Expand Down
1 change: 0 additions & 1 deletion packages/typescript-to-proptypes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"url": "https://github.com/mui/material-ui.git",
"directory": "packages/typescript-to-proptypes"
},
"type": "module",
"main": "src/index.ts",
"author": "merceyz <merceyz@users.noreply.github.com>",
"license": "MIT",
Expand Down

0 comments on commit 03fe140

Please sign in to comment.