Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript for parts of Sugar only eg. sugar/date #574

Open
pie6k opened this issue Jan 3, 2017 · 1 comment
Open

Typescript for parts of Sugar only eg. sugar/date #574

pie6k opened this issue Jan 3, 2017 · 1 comment

Comments

@pie6k
Copy link

pie6k commented Jan 3, 2017

If I do

import Sugar from 'sugar

I've got all type definitions for Sugar.Date etc, but if I import only part of sugar eg.

import SugarDate from 'sugar/date'

I'm not getting any types. SugarDate is declared as :any

@andrewplummer
Copy link
Owner

This leads into #529. The declarations are still in flux. If you only require the date module then for now can you try using the sugar-date module instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants