Skip to content

Commit 81201aa

Browse files
committed
fix: value is type of string in shape type
1 parent 3004853 commit 81201aa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ function renderTypeAppend(type) {
4242
} else if (name === 'custom') {
4343
append = type.raw
4444
} else if (name === 'shape') {
45+
if (typeof value === 'string') {
46+
return value
47+
}
48+
4549
const keys = Object.keys(value)
4650
if (!!keys.length) {
4751
append = (

0 commit comments

Comments
 (0)