Created
July 4, 2017 14:21
-
-
Save chriskrycho/85f01542bdff5444e467b137e4056ab1 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
export namespace Foo { | |
export const bar: boolean; | |
export const quux: (a: boolean) => string; | |
} | |
export default Foo; | |
export const baz: string; |
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
import Foo from 'foo'; | |
import { baz } from 'foo'; | |
import Quux from 'quux'; | |
console.log(Foo.bar); | |
console.log(baz === 'something'); | |
console.log(Quux.Foo === Foo); |
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
import FooFoo from 'foo'; | |
export namespace Quux { | |
export const Foo: typeof FooFoo; | |
} | |
export default Quux; |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"strict": true, | |
"noEmit": false, | |
"baseUrl": "./", | |
"typeRoots": ["./"] | |
}, | |
"include": ["**/*"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment