Closed alexanderdean closed 3 years ago
It looks like we can do a "soft" port to TypeScript by:
I'm interested as a first step to try this and see what the resulting JavaScript looks like. Is it still pretty efficient?
Let's schedule for 1.1.0
This is ambitious - let's move back to 1.2.0...
Moving back again
We even can publish definition files for stringly-typed method like snowplow_name_here('trackEvent')
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/types-2.0/google.analytics/index.d.ts
Cool idea!
Good opportunity to do this as we move to v3.
See this intro here: http://10consulting.com/2012/10/12/introduction-to-typescript-presentation/
Porting to TypeScript is quite well aligned with the Snowplow tech goal of strongly typed data pipelines.
Unlike CoffeeScript, TS doesn't introduce any of its own design weirdnesses.