repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: add axios to http-client TS code example
[poolifier.git]
/
examples
/
typescript
/
http-client
/
src
/
types.ts
diff --git
a/examples/typescript/http-client/src/types.ts
b/examples/typescript/http-client/src/types.ts
index e68e7260acbe080b212c7a67e5e53c7a412ff24c..ff0d3262e2d05644669108e2a412489afabb853c 100644
(file)
--- a/
examples/typescript/http-client/src/types.ts
+++ b/
examples/typescript/http-client/src/types.ts
@@
-3,10
+3,12
@@
import {
type RequestInfo as NodeFetchRequestInfo,
type RequestInit as NodeFetchRequestInit
} from 'node-fetch'
type RequestInfo as NodeFetchRequestInfo,
type RequestInit as NodeFetchRequestInit
} from 'node-fetch'
+import { type AxiosRequestConfig } from 'axios'
export interface WorkerData {
export interface WorkerData {
-
url
: URL | RequestInfo | NodeFetchRequestInfo
+
input
: URL | RequestInfo | NodeFetchRequestInfo
init?: RequestInit | NodeFetchRequestInit
init?: RequestInit | NodeFetchRequestInit
+ axiosRequestConfig?: AxiosRequestConfig
}
export interface WorkerResponse {
}
export interface WorkerResponse {