feat: add native node.js fetch implementation to http-client example
[poolifier.git] / examples / typescript / http-client / src / types.ts
1 import { type URL } from 'node:url'
2 import {
3 type RequestInfo as NodeFetchRequestInfo,
4 type RequestInit as NodeFetchRequestInit
5 } from 'node-fetch'
6
7 export interface WorkerData {
8 url: URL | RequestInfo | NodeFetchRequestInfo
9 init?: RequestInit | NodeFetchRequestInit
10 }
11
12 export interface WorkerResponse {
13 text: string
14 }