[−][src]Struct dprint_plugin_typescript::TypeScriptConfiguration
Fields
single_quotes: bool
line_width: u32
use_tabs: bool
indent_width: u8
arrow_function_expression_use_parentheses: UseParentheses
arrow_function_expression_brace_position: BracePosition
class_declaration_brace_position: BracePosition
class_expression_brace_position: BracePosition
constructor_brace_position: BracePosition
do_while_statement_brace_position: BracePosition
enum_declaration_brace_position: BracePosition
get_accessor_brace_position: BracePosition
if_statement_brace_position: BracePosition
interface_declaration_brace_position: BracePosition
for_statement_brace_position: BracePosition
for_in_statement_brace_position: BracePosition
for_of_statement_brace_position: BracePosition
function_declaration_brace_position: BracePosition
function_expression_brace_position: BracePosition
method_brace_position: BracePosition
module_declaration_brace_position: BracePosition
set_accessor_brace_position: BracePosition
switch_case_brace_position: BracePosition
switch_statement_brace_position: BracePosition
try_statement_brace_position: BracePosition
while_statement_brace_position: BracePosition
call_expression_force_multi_line_arguments: bool
new_expression_force_multi_line_arguments: bool
arrow_function_expression_force_multi_line_parameters: bool
call_signature_force_multi_line_parameters: bool
construct_signature_force_multi_line_parameters: bool
constructor_force_multi_line_parameters: bool
constructor_type_force_multi_line_parameters: bool
function_declaration_force_multi_line_parameters: bool
function_expression_force_multi_line_parameters: bool
function_type_force_multi_line_parameters: bool
get_accessor_force_multi_line_parameters: bool
method_force_multi_line_parameters: bool
method_signature_force_multi_line_parameters: bool
set_accessor_force_multi_line_parameters: bool
enum_declaration_member_spacing: MemberSpacing
if_statement_next_control_flow_position: NextControlFlowPosition
try_statement_next_control_flow_position: NextControlFlowPosition
binary_expression_operator_position: OperatorPosition
conditional_expression_operator_position: OperatorPosition
break_statement_semi_colon: bool
call_signature_semi_colon: bool
class_property_semi_colon: bool
construct_signature_semi_colon: bool
constructor_semi_colon: bool
continue_statement_semi_colon: bool
debugger_statement_semi_colon: bool
do_while_statement_semi_colon: bool
empty_statement_semi_colon: bool
export_all_declaration_semi_colon: bool
export_assignment_semi_colon: bool
export_default_expression_semi_colon: bool
export_named_declaration_semi_colon: bool
expression_statement_semi_colon: bool
function_declaration_semi_colon: bool
get_accessor_semi_colon: bool
import_declaration_semi_colon: bool
import_equals_semi_colon: bool
index_signature_semi_colon: bool
mapped_type_semi_colon: bool
method_semi_colon: bool
method_signature_semi_colon: bool
module_declaration_semi_colon: bool
namespace_export_declaration_semi_colon: bool
property_signature_semi_colon: bool
return_statement_semi_colon: bool
set_accessor_semi_colon: bool
throw_statement_semi_colon: bool
type_alias_semi_colon: bool
variable_statement_semi_colon: bool
if_statement_single_body_position: SingleBodyPosition
for_statement_single_body_position: SingleBodyPosition
for_in_statement_single_body_position: SingleBodyPosition
for_of_statement_single_body_position: SingleBodyPosition
while_statement_single_body_position: SingleBodyPosition
array_expression_trailing_commas: TrailingCommas
array_pattern_trailing_commas: TrailingCommas
enum_declaration_trailing_commas: TrailingCommas
object_expression_trailing_commas: TrailingCommas
tuple_type_trailing_commas: TrailingCommas
if_statement_use_braces: UseBraces
for_statement_use_braces: UseBraces
for_of_statement_use_braces: UseBraces
for_in_statement_use_braces: UseBraces
while_statement_use_braces: UseBraces
binary_expression_space_surrounding_bitwise_and_arithmetic_operator: bool
Whether to surround bitwise and arithmetic operators in a binary expression with spaces.
true
(default) - Ex.1 + 2
false
- Ex.1+2
construct_signature_space_after_new_keyword: bool
Whether to add a space after the new
keyword in a construct signature.
true
- Ex. new (): MyClass;
false
(default) - Ex. new(): MyClass;
constructor_space_before_parentheses: bool
Whether to add a space before the parentheses of a constructor.
true
- Ex. constructor ()
false
(false) - Ex. constructor()
constructor_type_space_after_new_keyword: bool
Whether to add a space after the new
keyword in a constructor type.
true
- Ex. type MyClassCtor = new () => MyClass;
false
(default) - Ex. type MyClassCtor = new() => MyClass;
do_while_statement_space_after_while_keyword: bool
Whether to add a space after the while
keyword in a do while statement.
true
(true) - Ex. do {\n} while (condition);
false
- Ex. do {\n} while(condition);
export_declaration_space_surrounding_named_exports: bool
Whether to add spaces around named exports in an export declaration.
true
(default) - Ex.export { SomeExport, OtherExport };
false
- Ex.export {SomeExport, OtherExport};
for_statement_space_after_for_keyword: bool
Whether to add a space after the for
keyword in a "for" statement.
true
(default) - Ex.for (let i = 0; i < 5; i++)
false
- Ex.for(let i = 0; i < 5; i++)
for_statement_space_after_semi_colons: bool
Whether to add a space after the semi-colons in a "for" statement.
true
(default) - Ex.for (let i = 0; i < 5; i++)
false
- Ex.for (let i = 0;i < 5;i++)
for_in_statement_space_after_for_keyword: bool
Whether to add a space after the for
keyword in a "for in" statement.
true
(default) - Ex.for (const prop in obj)
false
- Ex.for(const prop in obj)
for_of_statement_space_after_for_keyword: bool
Whether to add a space after the for
keyword in a "for of" statement.
true
(default) - Ex.for (const value of myArray)
false
- Ex.for(const value of myArray)
function_declaration_space_before_parentheses: bool
Whether to add a space before the parentheses of a function declaration.
true
- Ex.function myFunction ()
false
(default) - Ex.function myFunction()
function_expression_space_before_parentheses: bool
Whether to add a space before the parentheses of a function expression.
true
- Ex. function ()
false
(default) - Ex. function()
get_accessor_space_before_parentheses: bool
Whether to add a space before the parentheses of a get accessor.
true
- Ex. get myProp ()
false
(false) - Ex. get myProp()
if_statement_space_after_if_keyword: bool
Whether to add a space after the if
keyword in an "if" statement.
true
(default) - Ex. if (true)
false
- Ex. if(true)
import_declaration_space_surrounding_named_imports: bool
Whether to add spaces around named imports in an import declaration.
true
(default) - Ex.import { SomeExport, OtherExport } from "my-module";
false
- Ex.import {SomeExport, OtherExport} from "my-module";
jsx_expression_container_space_surrounding_expression: bool
Whether to add a space surrounding the expression of a JSX container.
true
- Ex.{ myValue }
false
(default) - Ex.{myValue}
method_space_before_parentheses: bool
Whether to add a space before the parentheses of a method.
true
- Ex. myMethod ()
false
- Ex. myMethod()
set_accessor_space_before_parentheses: bool
Whether to add a space before the parentheses of a set accessor.
true
- Ex. set myProp (value: string)
false
(default) - Ex. set myProp(value: string)
type_annotation_space_before_colon: bool
Whether to add a space before the colon of a type annotation.
true
- Ex.function myFunction() : string
false
(default) - Ex.function myFunction(): string
type_assertion_space_before_expression: bool
Whether to add a space before the expression in a type assertion.
true
(default) - Ex.<string> myValue
false
- Ex.<string>myValue
while_statement_space_after_while_keyword: bool
Whether to add a space after the while
keyword in a while statement.
true
(default) - Ex.while (true)
false
- Ex.while(true)
Trait Implementations
impl Clone for TypeScriptConfiguration
[src]
fn clone(&self) -> TypeScriptConfiguration
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for TypeScriptConfiguration
impl Send for TypeScriptConfiguration
impl Sync for TypeScriptConfiguration
impl Unpin for TypeScriptConfiguration
impl UnwindSafe for TypeScriptConfiguration
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,