Skip to content

Commit 9514e40

Browse files
committed
fix: @putout/plugin-nodejs: declare: util: types
1 parent 378d636 commit 9514e40

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/plugin-nodejs/lib/declare/index.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,8 @@ test('putout: plugin: nodejs: declare: process', (t) => {
147147
`);
148148
t.end();
149149
});
150+
151+
test('putout: plugin: nodejs: declare: no report: types', (t) => {
152+
t.noReportCode(`const {x} = types`);
153+
t.end();
154+
});

packages/plugin-nodejs/lib/declare/modules/util.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,4 @@ export default {
3333
toUSVString: `import {toUSVString} from 'node:util'`,
3434
transferableAbortController: `import {transferableAbortController} from 'node:util'`,
3535
transferableAbortSignal: `import {transferableAbortSignal} from 'node:util'`,
36-
types: `import {types} from 'node:util'`,
3736
};

0 commit comments

Comments
 (0)