feat: adjust formatting for clang-format v1.0.19.
This commit is contained in:
@ -1,12 +1,6 @@
|
||||
export class Test {
|
||||
firstItem;
|
||||
constructor() {
|
||||
this.doStuff();
|
||||
}
|
||||
otherMethod() {
|
||||
|
||||
}
|
||||
doStuff() {
|
||||
|
||||
}
|
||||
constructor() { this.doStuff(); }
|
||||
otherMethod() {}
|
||||
doStuff() {}
|
||||
}
|
@ -20,19 +20,15 @@ export class MyClass {
|
||||
* Create a new MyClass
|
||||
* @param {String} name The name to say hello to
|
||||
*/
|
||||
constructor(name) {
|
||||
this.message = 'hello ' + name;
|
||||
}
|
||||
constructor(name) { this.message = 'hello ' + name; }
|
||||
|
||||
/**
|
||||
* Return a greeting message
|
||||
*/
|
||||
greet() {
|
||||
return this.message;
|
||||
}
|
||||
greet() { return this.message; }
|
||||
}
|
||||
|
||||
/**
|
||||
* An exported function
|
||||
*/
|
||||
export var myFn = (val:number) => return val*2;
|
||||
export var myFn = (val: number) => return val * 2;
|
Reference in New Issue
Block a user