Created
July 25, 2017 18:54
-
-
Save sudarshang/d7e8a86de1cb95b97738ebfdaa4aaee4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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