Skip to content

Commit 13aec3f

Browse files
committed
🔧 Use isolated module and update target ES version
1 parent abe9163 commit 13aec3f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

‎src/index.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -305,14 +305,14 @@ function create<P extends Payload>(baseOptions: Options<P> = {}): Instance<P> {
305305
const { get, post, put, patch, head, delete: _delete } = create()
306306

307307
export {
308-
ResponsePromise,
309-
Payload,
310-
Options,
311-
Instance,
312-
Response,
308+
type ResponsePromise,
309+
type Payload,
310+
type Options,
311+
type Instance,
312+
type Response,
313+
type Serialize,
313314
ResponseError,
314315
TimeoutError,
315-
Serialize,
316316
serialize,
317317
request,
318318
create,

‎tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
3-
"target": "es6",
4-
"lib": ["es2017", "es6", "dom"],
3+
"target": "es2020",
54
"module": "Node16",
65
"moduleResolution": "Node16",
76
"esModuleInterop": true,
87
"skipLibCheck": true,
8+
"isolatedModules": true,
99

1010
/* Linting */
1111
"strict": true,

0 commit comments

Comments
 (0)