feat: add node-fetch multithreaded example
[poolifier.git] / examples / typescript / http-client / node-fetch / src / types.ts
CommitLineData
11856b30
JB
1import { type URL } from 'node:url'
2import { type RequestInfo, type RequestInit } from 'node-fetch'
3
4export interface WorkerData {
5 url: URL | RequestInfo
6 init?: RequestInit
7}
8
9export interface WorkerResponse {
10 text: string
11}