royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Zarzycki <piotrzarzyck...@gmail.com>
Subject Re: TypeDefs for Moment.js
Date Mon, 17 Sep 2018 09:07:05 GMT
Hi Yishay,

Please make that stuff on a branch feature/momentjs_typedefs. I'm trying to
prepare release so don't want to have more new stuff in develop.

Thanks,
Piotr

pon., 17 wrz 2018 o 10:24 Yishay Weiss <yishayjobs@hotmail.com> napisał(a):

> Hi,
>
> I’m struggling trying create a typedefs for moment.js [1].  There’s no
> ready externs file as far as I can tell so I tried using TypeScript
> definition file [2] in conjunction with this conversion utility [3].
>
> Unfortunately, there are overloaded methods which seem to confuse the
> conversion utility and create duplicate arguments in signatures  (e.g.
> weekdays – line 1196 [4]).
>
> Any ideas?
>
> [1] https://momentjs.com/
> [2] https://github.com/moment/moment/blob/develop/moment.d.ts
> [3] https://github.com/eredo/tsd2cce
> [4]
> https://github.com/royale-extras/closure-compiler/blob/master/contrib/externs/moment.js
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message