mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 12:37:16 +08:00
Merge pull request #1195 from jeffmay/grunt-ts-defs
[master] Updated grunt declarations to match 0.4.x documentation.
This commit is contained in:
@@ -77,7 +77,7 @@ List of Definitions
|
||||
* [GoJS](http://gojs.net/) (by [Barbara Duckworth](https://github.com/barbara42))
|
||||
* [Greasemonkey](http://www.greasespot.net/) (by [Kota Saito](https://github.com/kotas))
|
||||
* [GreenSock Animation Platform (GSAP)](http://www.greensock.com/get-started-js/) (by [Robert S.](https://github.com/codeBelt))
|
||||
* [Grunt JS](http://gruntjs.com/) (by [Basarat Ali Syed](https://github.com/basarat))
|
||||
* [Grunt JS](http://gruntjs.com/) (by [Jeff May](https://github.com/jeffmay) and [Basarat Ali Syed](https://github.com/basarat))
|
||||
* [Google API Client](https://code.google.com/p/google-api-javascript-client/) (by [Frank M](https://github.com/sgtfrankieboy))
|
||||
* [Google App Engine Channel API](https://developers.google.com/appengine/docs/java/channel/javascript) (by [vvakame](https://github.com/vvakame))
|
||||
* [GoogleMaps](https://developers.google.com/maps/) (by [Esben Nepper](https://github.com/eNepper))
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// http://gruntjs.com/getting-started#an-example-gruntfile
|
||||
|
||||
// exports should work same as module.exports
|
||||
exports = function (grunt) {
|
||||
exports = (grunt: IGrunt) => {
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
@@ -26,4 +26,16 @@ exports = function (grunt) {
|
||||
// Default task(s).
|
||||
grunt.registerTask('default', ['uglify']);
|
||||
|
||||
|
||||
// util methods
|
||||
var testOneArg = (a: number) => a * 2;
|
||||
var asyncedOneArg = grunt.util.callbackify(testOneArg);
|
||||
asyncedOneArg(1, (result: number) => {
|
||||
console.log(result);
|
||||
});
|
||||
var testTwoArgs = (a: number, b: string) => "it works with " + a + " " + b;
|
||||
var asyncedTwoArgs = grunt.util.callbackify(testTwoArgs);
|
||||
asyncedTwoArgs(2, "values", (result: string) => {
|
||||
console.log(result);
|
||||
});
|
||||
};
|
||||
1480
gruntjs/gruntjs.d.ts
vendored
1480
gruntjs/gruntjs.d.ts
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user