From: Jérôme Benoit Date: Sat, 16 Dec 2023 18:03:31 +0000 (+0100) Subject: refactor: examples import cleanup X-Git-Tag: v3.1.2~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8bc42206b3683f6bb7fc707b45b391e8e9ad10c5;p=poolifier.git refactor: examples import cleanup Signed-off-by: Jérôme Benoit --- 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 {