--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: ts/function/parameters/function_parameters.ts --- # Input ```ts export function formatNumber1( value: string, { a, b, c, formatNumber, ...props }: Omit & { useGrouping?: boolean; } ): string {} export function formatNumber2( value: string, { a }: Omit & { useGrouping?: boolean; } ): string {} export const findByDatefindByDatefindByDatefindByDate = (_, { date }, { req } ) => findByDatefindByDatefindByDatefindByDate; export const queryAuditLog = async ({ startDate, endDate, jobId, src, type, }: Filter): Promise => { }; ``` ============================= # Outputs ## Output 1 ----- Indent style: Tab Line width: 80 Quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always ----- ```ts export function formatNumber1( value: string, { a, b, c, formatNumber, ...props }: Omit & { useGrouping?: boolean; }, ): string {} export function formatNumber2( value: string, { a, }: Omit & { useGrouping?: boolean; }, ): string {} export const findByDatefindByDatefindByDatefindByDate = ( _, { date }, { req }, ) => findByDatefindByDatefindByDatefindByDate; export const queryAuditLog = async ({ startDate, endDate, jobId, src, type, }: Filter): Promise => {}; ``` ## Output 2 ----- Indent style: Tab Line width: 100 Quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always ----- ```ts export function formatNumber1( value: string, { a, b, c, formatNumber, ...props }: Omit & { useGrouping?: boolean; }, ): string {} export function formatNumber2( value: string, { a, }: Omit & { useGrouping?: boolean; }, ): string {} export const findByDatefindByDatefindByDatefindByDate = (_, { date }, { req }) => findByDatefindByDatefindByDatefindByDate; export const queryAuditLog = async ({ startDate, endDate, jobId, src, type, }: Filter): Promise => {}; ``` ## Output 3 ----- Indent style: Tab Line width: 120 Quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always ----- ```ts export function formatNumber1( value: string, { a, b, c, formatNumber, ...props }: Omit & { useGrouping?: boolean; }, ): string {} export function formatNumber2( value: string, { a, }: Omit & { useGrouping?: boolean; }, ): string {} export const findByDatefindByDatefindByDatefindByDate = (_, { date }, { req }) => findByDatefindByDatefindByDatefindByDate; export const queryAuditLog = async ({ startDate, endDate, jobId, src, type }: Filter): Promise => {}; ```