prettier/tests/typescript_decorators/argument-list-preserve-line.ts

14 lines
293 B
TypeScript

class Foo {
constructor(
@inject(Bar)
private readonly bar: IBar,
@inject(MyProcessor)
private readonly myProcessor: IMyProcessor,
@inject(InjectionTypes.AnotherThing)
private readonly anotherThing: IAnotherThing | undefined,
) { }
}