Skip to content

Commit c4fe283

Browse files
authored
refactor: fix internal type override (#1461)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent daacc54 commit c4fe283

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/extractor.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,8 @@ export class Extractor {
102102
logger?.warn('normalizePackageJson from PkgPath', pkg.path, 'failed:', e)
103103
}
104104

105-
const component = this.#componentBuilder.makeComponent(
106-
/* @ts-expect-error TS2559 */
107-
pkg.packageJson as PackageDescription) /* eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- ack */
108-
105+
/* eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- ack */
106+
const component = this.#componentBuilder.makeComponent(pkg.packageJson )
109107
if (component === undefined) {
110108
throw new Error(`failed building Component from PkgPath ${pkg.path}`)
111109
}

0 commit comments

Comments
 (0)