diff --git a/packages-internal/scripts/typescript-to-proptypes/test/typescript-to-proptypes.test.ts b/packages-internal/scripts/typescript-to-proptypes/test/typescript-to-proptypes.test.ts index 601d738306c097..35cef6e5576579 100644 --- a/packages-internal/scripts/typescript-to-proptypes/test/typescript-to-proptypes.test.ts +++ b/packages-internal/scripts/typescript-to-proptypes/test/typescript-to-proptypes.test.ts @@ -4,10 +4,7 @@ import * as ts from 'typescript'; import { expect } from 'chai'; import glob from 'fast-glob'; import prettier from 'prettier'; -import { - TypeScriptProject, - createTypeScriptProjectBuilder, -} from '@mui-internal/api-docs-builder/utils/createTypeScriptProject'; +import { TypeScriptProject, createTypeScriptProjectBuilder } from '@mui-internal/docs-utils'; import { generatePropTypes } from '../src/generatePropTypes'; import { injectPropTypesInFile } from '../src/injectPropTypesInFile'; import { getPropTypesFromFile } from '../src/getPropTypesFromFile'; @@ -72,7 +69,7 @@ describe('typescript-to-proptypes', () => { const components = getPropTypesFromFile({ filePath: inputPath, project, ...options.parser }); - let inputSource = null; + let inputSource: string | null = null; if (inputPath.endsWith('.d.ts')) { try { inputSource = fs.readFileSync(inputJS, 'utf8');