Skip to content

Commit 3bc8388

Browse files
test(library): import LibraryType from the declarations that export it
`LibraryType` is exported from `declarations/WebpackOptions`, not from the package root, so reading it off the root failed `lint:types-test` with TS2694 and took every branch off `main` with it.
1 parent 5a41278 commit 3bc8388

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/configCases/library/script-type-keeps-script-output/webpack.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function expectScriptOutput() {
2020
}
2121

2222
/**
23-
* @param {import("../../../../").LibraryType} type library type declared on `output`
23+
* @param {import("../../../../declarations/WebpackOptions").LibraryType} type library type declared on `output`
2424
* @returns {Configuration} configuration
2525
*/
2626
const outputLibrary = (type) => ({

0 commit comments

Comments
 (0)