-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid typescript declarations #723
Comments
Hi,
I believe the jsdoc are indeed incorrect. I created a PR to fix that.
This is a bit redundant because the |
let zones = Object.create(null)
zones['uu'] returns I think TimezoneService.get() should return either a Timezone object, or |
@jannikac I'm fine switching to use of |
I think this is addressed now, e.g. by e609077. |
As mentioned at #712 (comment) I tried the newest types.
My code so far used
new ICAL.Duration({days: -1})
without a problem. But the types say this is now invalid, as it missesisNegative
,weeks
,hours
, … elements. Arehours
,weeks
required in the object, passed to the constructor?I guess the parameter of
event.iterator()
should be optional.In
Time.fromJSDate()
the second parameter used to be optional - skipping it, was equivalent to passing “false”. Now this parameter is mandatory. Can it be made optional/default value to befalse
?While the types enforce that Component.getFirstPropertyValue() returns string, in my existing code I assume that getFirstPropertyValue('dtend' / 'duration' / 'rrule' ) return Time / Duration / Recur object. Please check, if the return type can indeed be non-string?
Isn’t
getAllSubcomponents(name?: string | undefined): Component[];
redundant - name is either optional, or is (a string or undefined)?The text was updated successfully, but these errors were encountered: