add yosay/yosay.d.ts

This commit is contained in:
armorik83
2014-11-06 01:04:01 +09:00
parent f4c08ac9ea
commit 0ddb142d51
2 changed files with 12 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
/// <reference path="./yosay.d.ts" />
import yosay = require('yosay');
yosay('Welcome to the generator!', {maxLength: 20});
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for yosay
// Project: https://github.com/yeoman/yosay
// Definitions by: Kentaro Okuno <http://github.com/armorik83>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module 'yosay' {
function yosay(message?: string, options?: {maxLength: number}): string;
export = yosay;
}