emilianosantucci / meteor-astronomy-ts

Meteor Astronomy definition file for TypeScript
MIT License
1 stars 2 forks source link

Match exports to Astronomy version 2? #2

Open james1293 opened 7 years ago

james1293 commented 7 years ago

Hello, I noticed that you export the object "Astro". Version 2 of Astronomy allows us to do

import { Class } from 'meteor/jagi:astronomy';

as seen on the documentation ( http://jagi.github.io/meteor-astronomy/#upgrading-to-20 ).

With your current ts definition file, that line of code results in an error.

Do you think it's possible to make your ts definition file match Astronomy version 2? I'm pretty new to typescript, but I figured I'd suggest the change in case it was an easy fix. Thanks!

james1293 commented 7 years ago

Update - after looking at the file a bit, it seems possible to simply:

Let me know what you think! Thanks!