prettier/tests/typescript_comments/methods.ts

47 lines
712 B
TypeScript

export class Point {
/**
* Does something.
*/
foo() {}
/**
* Does something else.
*/
bar() {}
/**
* Does
* something
* much
* better
* than
* the
* rest.
*/
baz() {}
/**
* Buzz-Fizz.
* Note: This is indented too far.
*/
fizzBuzz() {}
/**
* Turns the given string into pig-latin.
*/
pigLatinize(value: string) {
/**
* This is a block comment inside of a method.
*/
}
/**
* One
* Two
* Three
* Four
*/
mismatchedIndentation() {}
}