mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Test types (#4140)
* Distinguish request and response data types * Fix Axios headers type `axios.headers` is not of the same type as `request.headers`, so a new type `AxiosDefaults` was introduced * Replace grunt-ts with dtslint This asserts that the type definitions are valid in the specified TypeScript version and above. This is the same tool that is used by DefinitelyTyped. * Remove grunt-ts * Restore typescript dependency * Fix missing semicolons Co-authored-by: Claas Augner <github@caugner.de> Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
+1
-14
@@ -12,19 +12,6 @@ module.exports = function(grunt) {
|
||||
dist: 'dist/**'
|
||||
},
|
||||
|
||||
ts: {
|
||||
test: {
|
||||
options: {
|
||||
lib: [
|
||||
'es5',
|
||||
'es2015.promise',
|
||||
'dom'
|
||||
]
|
||||
},
|
||||
src: ['typings/index.d.ts', 'test/typescript/*.ts']
|
||||
}
|
||||
},
|
||||
|
||||
package2bower: {
|
||||
all: {
|
||||
fields: [
|
||||
@@ -116,7 +103,7 @@ module.exports = function(grunt) {
|
||||
';'].join(''));
|
||||
});
|
||||
|
||||
grunt.registerTask('test', 'Run the jasmine and mocha tests', ['eslint', 'mochaTest', 'karma:single', 'ts']);
|
||||
grunt.registerTask('test', 'Run the jasmine and mocha tests', ['eslint', 'mochaTest', 'karma:single']);
|
||||
grunt.registerTask('build', 'Run webpack and bundle the source', ['clean', 'webpack']);
|
||||
grunt.registerTask('version', 'Sync version info for a release', ['usebanner', 'package2bower', 'package2env']);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user