udivankin / sunrise-sunset

Sunrise and sunset time calculation for given coordinates. ~1kb minified with zero dependencies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript Error: "The expression of an export assignment must be an identifier or qualified name in an ambient context."

axle07 opened this issue · comments

commented
ERROR in /home/code/project/node_modules/sunrise-sunset-js/dist/index.d.ts(15,12):
15:12 The expression of an export assignment must be an identifier or qualified name in an ambient context.
    13 |   ): Date;
    14 | 
  > 15 |   export = { getSunrise, getSunset };
       |            ^
    16 | }
Version: typescript 3.5.3
Time: 5257ms
commented

This is addressed in #12

commented

Thanks for pointing this out!
The PR mentioned above was merged, npm version bumped, pls check.