u-now / types-x

eXtend ServiceNow development with type definitions
MIT License
1 stars 3 forks source link

When constructor and methods have the same name one with params one without..? #12

Closed emyrold closed 5 years ago

emyrold commented 5 years ago

I think you @johncaruso touched on this, but I'm a little foggy right now so maybe we can review at some point. I'm attaching a screenshot of the SNOW api doc's. I was able to do all the methods for GlideSchedule() however the SNOW api doc showed GlideSchedule() and GlideSchedule(String sysID, String timeZone). If I recall they are both constructors and I might have to modify my constructor section...?

emyrold commented 5 years ago

image

johncaruso commented 5 years ago

See for example: https://github.com/johncaruso/types-x/blob/master/london/GlideDateTime.d.ts