[−][src]Struct dprint_plugin_typescript::TypeScriptConfiguration
Fields
new_line_kind: NewLineKindsingle_quotes: boolline_width: u32use_tabs: boolindent_width: u8arrow_function_expression_use_parentheses: UseParenthesesarrow_function_expression_brace_position: BracePositionclass_declaration_brace_position: BracePositionclass_expression_brace_position: BracePositionconstructor_brace_position: BracePositiondo_while_statement_brace_position: BracePositionenum_declaration_brace_position: BracePositionget_accessor_brace_position: BracePositionif_statement_brace_position: BracePositioninterface_declaration_brace_position: BracePositionfor_statement_brace_position: BracePositionfor_in_statement_brace_position: BracePositionfor_of_statement_brace_position: BracePositionfunction_declaration_brace_position: BracePositionfunction_expression_brace_position: BracePositionmethod_brace_position: BracePositionmodule_declaration_brace_position: BracePositionset_accessor_brace_position: BracePositionswitch_case_brace_position: BracePositionswitch_statement_brace_position: BracePositiontry_statement_brace_position: BracePositionwhile_statement_brace_position: BracePositioncall_expression_force_multi_line_arguments: boolnew_expression_force_multi_line_arguments: boolarrow_function_expression_force_multi_line_parameters: boolcall_signature_force_multi_line_parameters: boolconstruct_signature_force_multi_line_parameters: boolconstructor_force_multi_line_parameters: boolconstructor_type_force_multi_line_parameters: boolfunction_declaration_force_multi_line_parameters: boolfunction_expression_force_multi_line_parameters: boolfunction_type_force_multi_line_parameters: boolget_accessor_force_multi_line_parameters: boolmethod_force_multi_line_parameters: boolmethod_signature_force_multi_line_parameters: boolset_accessor_force_multi_line_parameters: boolenum_declaration_member_spacing: MemberSpacingif_statement_next_control_flow_position: NextControlFlowPositiontry_statement_next_control_flow_position: NextControlFlowPositionbinary_expression_operator_position: OperatorPositionconditional_expression_operator_position: OperatorPositionbreak_statement_semi_colon: boolcall_signature_semi_colon: boolclass_property_semi_colon: boolconstruct_signature_semi_colon: boolconstructor_semi_colon: boolcontinue_statement_semi_colon: booldebugger_statement_semi_colon: booldo_while_statement_semi_colon: boolexport_all_declaration_semi_colon: boolexport_assignment_semi_colon: boolexport_default_expression_semi_colon: boolexport_named_declaration_semi_colon: boolexpression_statement_semi_colon: boolfunction_declaration_semi_colon: boolget_accessor_semi_colon: boolimport_declaration_semi_colon: boolimport_equals_declaration_semi_colon: boolindex_signature_semi_colon: boolmapped_type_semi_colon: boolmethod_semi_colon: boolmethod_signature_semi_colon: boolmodule_declaration_semi_colon: boolnamespace_export_declaration_semi_colon: boolproperty_signature_semi_colon: boolreturn_statement_semi_colon: boolset_accessor_semi_colon: boolthrow_statement_semi_colon: booltype_alias_semi_colon: boolvariable_statement_semi_colon: boolif_statement_single_body_position: SingleBodyPositionfor_statement_single_body_position: SingleBodyPositionfor_in_statement_single_body_position: SingleBodyPositionfor_of_statement_single_body_position: SingleBodyPositionwhile_statement_single_body_position: SingleBodyPositionarray_expression_trailing_commas: TrailingCommasarray_pattern_trailing_commas: TrailingCommasenum_declaration_trailing_commas: TrailingCommasobject_expression_trailing_commas: TrailingCommastuple_type_trailing_commas: TrailingCommasif_statement_use_braces: UseBracesfor_statement_use_braces: UseBracesfor_of_statement_use_braces: UseBracesfor_in_statement_use_braces: UseBraceswhile_statement_use_braces: UseBracesbinary_expression_space_surrounding_bitwise_and_arithmetic_operator: boolWhether to surround bitwise and arithmetic operators in a binary expression with spaces.
true(default) - Ex.1 + 2false- Ex.1+2
construct_signature_space_after_new_keyword: boolWhether 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: boolWhether to add a space before the parentheses of a constructor.
true - Ex. constructor ()
false (false) - Ex. constructor()
constructor_type_space_after_new_keyword: boolWhether 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: boolWhether 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: boolWhether 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: boolWhether 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: boolWhether 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: boolWhether 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: boolWhether 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: boolWhether 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: boolWhether to add a space before the parentheses of a function expression.
true - Ex. function ()
false (default) - Ex. function()
get_accessor_space_before_parentheses: boolWhether 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: boolWhether 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: boolWhether 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: boolWhether to add a space surrounding the expression of a JSX container.
true- Ex.{ myValue }false(default) - Ex.{myValue}
method_space_before_parentheses: boolWhether to add a space before the parentheses of a method.
true - Ex. myMethod ()
false - Ex. myMethod()
set_accessor_space_before_parentheses: boolWhether 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: boolWhether to add a space before the colon of a type annotation.
true- Ex.function myFunction() : stringfalse(default) - Ex.function myFunction(): string
type_assertion_space_before_expression: boolWhether to add a space before the expression in a type assertion.
true(default) - Ex.<string> myValuefalse- Ex.<string>myValue
while_statement_space_after_while_keyword: boolWhether 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]
impl<'de> Deserialize<'de> for TypeScriptConfiguration[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for TypeScriptConfiguration[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> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
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>,