Skip to content

format

Formats the source code with the project’s formatter.

Import:

import { format } from '@mnaoumov/typescript-dev-toolkit/formatters/auto';

Signature:

function format(options: FormatOptions | undefined): Promise<void>

Parameters:

Parameter Type Description
options FormatOptions | undefined The FormatOptions.

Returns: Promise<void> — A Promise that resolves when the source code has been formatted.


Links to this page: