This commit is contained in:
Johannes Rieken
2017-09-20 09:54:24 +02:00
parent ed20bae44a
commit 54dfbf8c66
2 changed files with 2 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ export namespace MarkdownString {
}
function isCodeblock(thing: any): thing is Codeblock {
return typeof thing === 'object'
return thing && typeof thing === 'object'
&& typeof (<Codeblock>thing).language === 'string'
&& typeof (<Codeblock>thing).value === 'string';
}