udivankin / sunrise-sunset

Sunrise and sunset time calculation for given coordinates. ~1kb minified with zero dependencies.
74 stars 17 forks source link

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

Closed axle07 closed 4 years ago

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

This is addressed in https://github.com/udivankin/sunrise-sunset/pull/12

udivankin commented 4 years ago

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