fix(tl): fix optionals generation
i am fucking dumb
This commit is contained in:
parent
ed0198f057
commit
6215892090
1 changed files with 3 additions and 3 deletions
|
@ -170,9 +170,9 @@ const writeSingleSchemaEntry = (type) => {
|
||||||
if (arg.description) ts.comment(arg.description)
|
if (arg.description) ts.comment(arg.description)
|
||||||
|
|
||||||
ts.write(
|
ts.write(
|
||||||
`readonly ${arg.name}${arg.optional}: ${fullTypeName(
|
`readonly ${arg.name}${
|
||||||
arg.type
|
arg.optional ? '?' : ''
|
||||||
)};`
|
}: ${fullTypeName(arg.type)};`
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue