2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

fix: add missing type for allowAbsoluteUrls (#6818)

* fix: add missing type for allowAbsoluteUrls

* fix: use semicolon in type files

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
StefanBRas
2025-03-10 18:22:36 +01:00
committed by GitHub
parent 7821ef9f5b
commit 10fa70ef14
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@ import axios = require('axios');
const config: axios.AxiosRequestConfig = {
url: '/user',
method: 'get',
allowAbsoluteUrls: false,
baseURL: 'https://api.example.com/',
transformRequest: (data: any) => '{"foo":"bar"}',
transformResponse: [
+1
View File
@@ -27,6 +27,7 @@ const config: AxiosRequestConfig = {
url: '/user',
method: 'get',
baseURL: 'https://api.example.com/',
allowAbsoluteUrls: false,
transformRequest: (data: any) => '{"foo":"bar"}',
transformResponse: [
(data: any) => ({ baz: 'qux' })