From 0ddb142d5104efae4b45b76abe6d788396b498ee Mon Sep 17 00:00:00 2001 From: armorik83 Date: Thu, 6 Nov 2014 01:04:01 +0900 Subject: [PATCH] add yosay/yosay.d.ts --- yosay/yosay-tests.ts | 3 +++ yosay/yosay.d.ts | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 yosay/yosay-tests.ts create mode 100644 yosay/yosay.d.ts 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