From 8bc42206b3683f6bb7fc707b45b391e8e9ad10c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 16 Dec 2023 19:03:31 +0100 Subject: [PATCH] refactor: examples import cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../typescript/http-server-pool/express-hybrid/src/types.ts | 2 +- .../typescript/http-server-pool/fastify-hybrid/src/types.ts | 2 +- .../http-server-pool/fastify-worker_threads/src/types.ts | 2 +- .../typescript/websocket-server-pool/ws-hybrid/src/types.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/typescript/http-server-pool/express-hybrid/src/types.ts b/examples/typescript/http-server-pool/express-hybrid/src/types.ts index 16fe86fe..293c57d7 100644 --- a/examples/typescript/http-server-pool/express-hybrid/src/types.ts +++ b/examples/typescript/http-server-pool/express-hybrid/src/types.ts @@ -1,4 +1,4 @@ -import type { Worker } from 'worker_threads' +import type { Worker } from 'node:worker_threads' import type { PoolOptions } from 'poolifier' export interface ClusterWorkerData extends PoolOptions { diff --git a/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts b/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts index 2ef0d1ce..137f4a98 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts @@ -1,4 +1,4 @@ -import type { Worker } from 'worker_threads' +import type { Worker } from 'node:worker_threads' import type { PoolOptions } from 'poolifier' export interface ClusterWorkerData extends FastifyPoolifierOptions { diff --git a/examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts b/examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts index 4293ab84..0c92e5b2 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts +++ b/examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts @@ -1,4 +1,4 @@ -import type { Worker } from 'worker_threads' +import type { Worker } from 'node:worker_threads' import type { PoolOptions } from 'poolifier' export interface BodyPayload { diff --git a/examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts b/examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts index 49f115de..ac3ad1ec 100644 --- a/examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts +++ b/examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts @@ -1,4 +1,4 @@ -import type { Worker } from 'worker_threads' +import type { Worker } from 'node:worker_threads' import type { PoolOptions } from 'poolifier' export enum MessageType { -- 2.34.1