From 2a08e7dce551774001117b337a42c68f620a001a Mon Sep 17 00:00:00 2001 From: Alexandre Stanislawski Date: Wed, 26 Apr 2017 16:14:59 +0200 Subject: [PATCH] fix(documentationjs): add support litteral string types in type format --- docgen/layouts/mixins/documentationjs/type.pug | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docgen/layouts/mixins/documentationjs/type.pug b/docgen/layouts/mixins/documentationjs/type.pug index ff8fcabf29..5a6e25c002 100644 --- a/docgen/layouts/mixins/documentationjs/type.pug +++ b/docgen/layouts/mixins/documentationjs/type.pug @@ -19,6 +19,8 @@ mixin type(t) if index < t.applications.length - 1 |, | > + else if t.type && t.type === 'StringLiteralType' + | "!{t.value}" else if t.type && t.type === 'OptionalType' | [ +type(t.expression)