Skip to content

[F] checkFormatTypeSpec

function checkFormatTypeSpec(code, prettierConfig?): Promise<boolean>

Check the given is correctly formatted.

Parameters

ParameterType
codestring
prettierConfig?Options

Returns

Promise<boolean>

true if code is formatted correctly.