prettier/tests/typescript_comments/mapped_types.ts

29 lines
335 B
TypeScript
Raw Normal View History

2018-05-05 21:43:53 +03:00
type A = {
// commentA
[a in A]: string;
}
type B = {
/* commentB */ [b in B]: string
}
type C = {
[/* commentC */ c in C]: string
}
type D = {
[d /* commentD */ in D]: string
}
type E = {
[e in /* commentE */ E]: string
}
type F = {
[f in F /* commentF */]: string
}
type G = {
[g in G] /* commentG */: string
}