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