andrewplummer / Sugar

A Javascript library for working with native objects.
https://sugarjs.com/
MIT License
4.53k stars 306 forks source link

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

Open pie6k opened 7 years ago

pie6k commented 7 years ago

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 commented 7 years ago

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?