Merge pull request #32648 from dkniffin/axios-case-converter

[@types/axios-case-converter] Added types for axios-case-converter
This commit is contained in:
Pranav Senthilnathan
2019-01-31 13:26:43 -08:00
committed by GitHub
5 changed files with 43 additions and 0 deletions
@@ -0,0 +1,6 @@
import axios from "axios";
import applyConverters from "axios-case-converter";
applyConverters(); // $ExpectError
applyConverters(axios.create()); // $ExpectType AxiosInstance
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for axios-case-converter 0.3
// Project: https://github.com/mpyw/axios-case-converter
// Definitions by: Derek Kniffin <https://github.com/dkniffin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { AxiosInstance } from "axios";
export default function applyConverters(axios: AxiosInstance): AxiosInstance;
+6
View File
@@ -0,0 +1,6 @@
{
"private": true,
"dependencies": {
"axios": "^0.16.1"
}
}
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"axios-case-converter-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }