refactor: examples import cleanup
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 16 Dec 2023 18:03:31 +0000 (19:03 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 16 Dec 2023 18:03:31 +0000 (19:03 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
examples/typescript/http-server-pool/express-hybrid/src/types.ts
examples/typescript/http-server-pool/fastify-hybrid/src/types.ts
examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts
examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts

index 16fe86fe8e859f3ee3b3eec9ed4688b524ad6542..293c57d74115ed635d338b6444cf4f1ceab2ea59 100644 (file)
@@ -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<Worker> {
index 2ef0d1ce8813d189a7c63e6b0e5f1f40cef3e212..137f4a98e22aa076085ae405455f1c4b28f82327 100644 (file)
@@ -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 {
index 4293ab84cc2424ab3836e9a04e5f573e36ca143c..0c92e5b24a89db14ac60c58880d8140290d9a195 100644 (file)
@@ -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 {
index 49f115dea5e9281737c3f48ddee8b5b74cd4c29b..ac3ad1ec33329c5b508b5114e5d1a7b5ece01686 100644 (file)
@@ -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 {