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 @sebmck
Didn’t Flow add type c = {...a, ...b} because type c = a & b was not working consistently/as expected?
1 reply 0 retweets 0 likes -
Replying to @guillaumgregoir
Not really. You don't want a union of colliding properties, you would want the later spread to overwrite previous properties, just like regular object spread.
1 reply 0 retweets 4 likes
Sebastian Retweeted Sebastian
Sebastian added,
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 