[F] formatTypeSpec
function formatTypeSpec(code, prettierConfig?): Promise<string>;
Format TypeSpec code
Parameters
Parameter | Type | Description |
---|---|---|
code | string | Code to format |
prettierConfig? | Options | Optional config for prettier. |
Returns
Promise
<string
>
Formatted code