First impressions with TypeScript: - Docs for tsconfig.json are confusing. Why are type checking options under compilerOptions? - The "An import path cannot end in .ts" rule not being optional is maddening
-
Show this thread
-
- tsconfig.json changes seem to require a restart of vscode - No `import type` like in Flow is annoying. Bundler needs to be smart and know if imports are only used as types so they don't effect module order.
11 replies 0 retweets 31 likesShow this thread -
Does TypeScript have object type spreads? In Flow I can do: type a = {a: string}; type b = {b: string}; type c = {...a, ...b};
15 replies 0 retweets 6 likesShow this thread -
-
Replying to @Hicksyfern
That's not the same. type A = { a: void | string }; type B = { a: string }; type AB = A & B; Will result in {a: void | string} when I actually want {a: string} which is what you'd get with {...A, ...B}
2 replies 0 retweets 2 likes -
Replying to @sebmck @Hicksyfern
TS does complain in this case.pic.twitter.com/UxMp7Kqfc1
2 replies 0 retweets 1 like
I'm using the TypeScript playground and it doesn't error. I can try it from tsc or vscode later.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 