[][src]Crate dprint_plugin_typescript

Structs

Configuration
ConfigurationBuilder

TypeScript formatting configuration builder.

ConfigurationDiagnostic

Represents a problem within the configuration.

ParseConfigurationError
ResolveConfigurationResult

Enums

BracePosition

Where to place the opening brace.

MemberSpacing

How to space members.

NewLineKind
NextControlFlowPosition

Where to place the next control flow within a control flow statement.

OperatorPosition

Where to place the operator for expressions that span multiple lines.

SingleBodyPosition

Where to place the expression of a statement that could possibly be on one line (ex. if (true) console.log(5);).

TrailingCommas

Trailing comma possibilities.

UseBraces

If braces should be used or not in certain scenarios.

UseParentheses

Whether to use parentheses around a single parameter in an arrow function.

Functions

format_text

Formats a file.

resolve_config

Resolves configuration from a collection of key value strings.