From 02c9096fb2debd20c5c4af22f1f3af73ae07f5ed Mon Sep 17 00:00:00 2001 From: Eugene Kuzmenko Date: Thu, 4 Feb 2016 22:13:53 +0200 Subject: [PATCH] [fixed] the interface declaration for `Markup` to make the input value for `htmlToJSX`, `markdownToHTML` and `markdownToJSX` optional --- interfaces/webcompiler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/webcompiler.js b/interfaces/webcompiler.js index a102564..8a8b1c3 100644 --- a/interfaces/webcompiler.js +++ b/interfaces/webcompiler.js @@ -18,9 +18,9 @@ declare module 'webcompiler' { declare class Markup { constructor(...transformers: Array): void; - htmlToJSX(html: string): Array; - markdownToHTML(markdown: string): string; - markdownToJSX(markdown: string): Array; + htmlToJSX(html: ?string): Array; + markdownToHTML(markdown: ?string): string; + markdownToJSX(markdown: ?string): Array; } declare function watch(dir: string, type: string, callback: () => void): void;