diff --git a/yosay/yosay-tests.ts b/yosay/yosay-tests.ts new file mode 100644 index 000000000..257b546ea --- /dev/null +++ b/yosay/yosay-tests.ts @@ -0,0 +1,3 @@ +/// +import yosay = require('yosay'); +yosay('Welcome to the generator!', {maxLength: 20}); \ No newline at end of file diff --git a/yosay/yosay.d.ts b/yosay/yosay.d.ts new file mode 100644 index 000000000..a46049e10 --- /dev/null +++ b/yosay/yosay.d.ts @@ -0,0 +1,9 @@ +// Type definitions for yosay +// Project: https://github.com/yeoman/yosay +// Definitions by: Kentaro Okuno +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module 'yosay' { + function yosay(message?: string, options?: {maxLength: number}): string; + export = yosay; +} \ No newline at end of file