Skip to content

Instantly share code, notes, and snippets.

@sudarshang
Created July 25, 2017 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sudarshang/d7e8a86de1cb95b97738ebfdaa4aaee4 to your computer and use it in GitHub Desktop.
Save sudarshang/d7e8a86de1cb95b97738ebfdaa4aaee4 to your computer and use it in GitHub Desktop.
class WithAGeneratorAfterAProperty {
public foo: string = "1";
- *blah() {
- }
+ *blah() {
+ }
}
class WithAGeneratorAfterAnotherMethod {
@@ -175,27 +175,27 @@
{
// Object with fields that are keyword names.
const a = {
- in: 1,
- IN: 1,
- instanceof: 1,
- instanceOf: 1,
+ in: 1,
+ IN: 1,
+ instanceof: 1,
+ instanceOf: 1,
};
// Objects with methods that are keyword names. At the top of
// the object declaration, and after a function declaration.
class One {
- instanceOf(): void {
- }
+ instanceOf(): void {
+ }
- in(): void {}
+ in(): void {}
}
// After a field declaration.
class Two {
foo: boolean = true;
- instanceOf(): void {
- }
+ instanceOf(): void {
+ }
}
}
@@ -223,8 +223,8 @@
// List objects...
const a = [
- /abc/,
- /def/
+ /abc/,
+ /def/
];
const z =
@@ -235,8 +235,8 @@
}
foo(
- /abc/,
- /def/);
+ /abc/,
+ /def/);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment