Skip to content

Commit 25a0ca9

Browse files
authoredDec 9, 2024··
Merge pull request #1834 from micalevisk/fix-issue-1833
refactor: drop deprecated nodejs utility api
2 parents 42600c0 + 088674f commit 25a0ca9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎lib/decorators/timeout.decorator.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { applyDecorators, SetMetadata } from '@nestjs/common';
2-
import { isString } from 'util';
32
import { SchedulerType } from '../enums/scheduler-type.enum';
43
import {
54
SCHEDULER_NAME,
@@ -22,7 +21,7 @@ export function Timeout(
2221
nameOrTimeout: string | number,
2322
timeout?: number,
2423
): MethodDecorator {
25-
const [name, timeoutValue] = isString(nameOrTimeout)
24+
const [name, timeoutValue] = typeof nameOrTimeout === 'string'
2625
? [nameOrTimeout, timeout]
2726
: [undefined, nameOrTimeout];
2827

0 commit comments

Comments
 (0)
Please sign in to comment.