Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DanRosenwasser
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
DanRosenwasser
10y ago
`.d.ts` packages should align on major.minor version numbers, so you'll be able to snap to a version and update appropriately.
92.
▲
Announcing TypeScript 2.0 Beta
(blogs.msdn.microsoft.com)
359 points
by
DanRosenwasser
10y ago
|
90 comments
93.
▲
by
DanRosenwasser
10y ago
Assuming it was published, `npm install @types/lodash@2.0.1`.
94.
▲
by
DanRosenwasser
10y ago
I agree, ADTs would be nice. In fact, we have a pull request out for it right now. [1] :) [1]: https://github.com/Microsoft/TypeScript/pull/9163
95.
▲
by
DanRosenwasser
10y ago
None taken! It's totally a valid question.
96.
▲
by
DanRosenwasser
10y ago
If you're a library author, then our feeling is you want to use `--save` because that saves your consumers the need to install the declaration files themselves. If you're writing a project that won't be consumed by anyone as
97.
▲
by
DanRosenwasser
10y ago
To clarify what Ryan's getting at, the TypeScript community has started moving to Typings, but there were still issues and pain points that we needed to address to avoid common problems. While we did write tutorials using Typings, that
98.
▲
The Future of TypeScript Declaration Files
(blogs.msdn.microsoft.com)
146 points
by
DanRosenwasser
10y ago
|
30 comments
99.
▲
by
DanRosenwasser
10y ago
Hey rhymohr, I think I see what you mean. If you're already using something like Babel & Webpack, it should just be a matter of using a TypeScript loader like ts-loader[1] or awesome-typescript-loader[2]. TypeScript should just fit
100.
▲
by
DanRosenwasser
10y ago
Actually TypeScript powers a JS editing experience codenamed "Salsa" that uses JSDoc comments for types. You can try it out in VS Code where it should currently be enabled. Give that a shot if you're looking into that sort of
101.
▲
by
DanRosenwasser
10y ago
We also have an official doc on getting started with TypeScript, React, and Webpack if anyone's interested: https://www.typescriptlang.org/docs/handbook/react-&-webpack...
102.
▲
by
DanRosenwasser
10y ago
Hey, I work on the TypeScript team. I hope you'll reconsider, and maybe you can fill me in on the issues you ran into. Your .js files should typically be relative to each other, so unless you're using absolute paths (which you usu
103.
▲
by
DanRosenwasser
11y ago
Hi, dev on TypeScript here. I would not just say that TypeScript "can work" with React, but that it is really very good, especially in terms of JSX tooling. Give it a try some time! I also wouldn't say TypeScript strives to f
104.
▲
by
DanRosenwasser
11y ago
I believe the issue is that the code gets parsed as a function expression that is being indexed by a series of strings in comma expressions. This happens instead of automatic semicolon insertion jumping in and then giving you the "expe
105.
▲
by
DanRosenwasser
11y ago
For a more complete list of features, check out our What's New in TypeScript page: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
106.
▲
Announcing TypeScript 1.8
(blogs.msdn.microsoft.com)
52 points
by
DanRosenwasser
11y ago
|
2 comments
107.
▲
by
DanRosenwasser
11y ago
Hi, member of the TypeScript team here. A big reason for the file size increase seems to be the inclusion of an AMD module loader and AMD prologues themselves. By targeting CommonJS and using Browserify, you see a nice decrease. I've s
108.
▲
by
DanRosenwasser
11y ago
Also check out our "What's New in TypeScript" page[1] for a little more detail. [1] https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
109.
▲
Announcing TypeScript 1.8 Beta
(blogs.msdn.com)
256 points
by
DanRosenwasser
11y ago
|
82 comments
110.
▲
by
DanRosenwasser
11y ago
C# is currently supported, with refactoring/navigation support. See - https://code.visualstudio.com/docs/languages/overview - https://code.visualstudio.com/docs/languages/csharp
111.
▲
by
DanRosenwasser
11y ago
Hey, TypeScript dev here, what can we do to make your life easier? Y'know, apart from a million bucks. What kinds of gaps of knowledge do you feel there are in using the two together?
112.
▲
by
DanRosenwasser
12y ago
At the very least, true multithreading and compatibility with .NET libraries. It's a great language with its own merits, and worth learning.