question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Convert to TypeScript

See original GitHub issue

#600 was an attempt to convert ember-intl to native classes, but it ended up getting reverted for reason I do not recall any more.

I’ve been using ember-cli-typescript@2.0.0-rc.1 quite successfully with @ember-intl/decorators and other projects and suggest we convert ember-intl over to TypeScript as well.

@jasonmit Do you remember, why you needed to revert #600?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
gossicommented, Apr 20, 2019

I made some: https://github.com/gossi/spomoda/blob/master/web/types/ember-intl/index.d.ts Use them locally and extend them with the ones you need for test-support (I haven’t covered them yet)

1reaction
gossicommented, Jan 11, 2019

Maybe ship an index.d.ts at first as “lightweight” solution, so people with Typescript don’t get those squiggly lines in their IDE and then conversion afterwards?

PS. Maybe ember observer has some usage statistics

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Migrating from JavaScript - TypeScript
Converting a JavaScript codebase over to TypeScript is, while somewhat tedious, usually not challenging. In this tutorial, we're going to look at how...
Read more >
Online Javascript to Typescript Converter Tool - JavaInUse
Online tool to convert a javascript file to typescript. Complex javascript files can be converted to typescript file using this tool.
Read more >
Converting a Javascript project to Typescript - Medium
The process · Step 1: Install TypeScript compiler and loader · Step 2 · Step 3: Create a configuration file · Step 4:...
Read more >
js-to-ts-converter - npm
Small utility to rename .js->.ts, and convert ES6 classes to TypeScript classes by filling in property declarations.
Read more >
How to Migrate Application From JavaScript to TypeScript
TypeScript is a superset of JavaScript, so valid JavaScript code is a valid TypeScript code. Incremental migration, converting the whole project step by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found