Skip to content
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

Add @types/node-ical #98

Open
wants to merge 100 commits into
base: master
Choose a base branch
from
Open

Add @types/node-ical #98

wants to merge 100 commits into from

Conversation

hugoblanc
Copy link

node-ical.d.ts

export function fromURL(url: any, opts: any, cb: any): void;
export function handleObject(name: any, val: any, params: any, ctx: any, stack: any, line: any): any;
export namespace objectHandlers {
function BEGIN(component: any, params: any, curr: any, stack: any): any;
function CATEGORIES(val: any, params: any, curr: any): any;
function COMPLETED(val: any, params: any, curr: any): any;
function CREATED(val: any, params: any, curr: any): any;
function DESCRIPTION(val: any, params: any, curr: any): any;
function DTEND(val: any, params: any, curr: any): any;
function DTSTAMP(val: any, params: any, curr: any): any;
function DTSTART(val: any, params: any, curr: any): any;
function END(val: any, params: any, curr: any, stack: any): any;
function EXDATE(val: any, params: any, curr: any): any;
function FREEBUSY(val: any, params: any, curr: any): any;
function GEO(val: any, params: any, curr: any): any;
function LOCATION(val: any, params: any, curr: any): any;
function RRULE(val: any, params: any, curr: any, stack: any, line: any): any;
function SUMMARY(val: any, params: any, curr: any): any;
function TRANSP(val: any, params: any, curr: any): any;
function UID(val: any, params: any, curr: any): any;
function URL(val: any, params: any, curr: any): any;
}
export function parseFile(filename: any, cb: any): any;
export function parseICS(str: any, cb: any): any;
export function parseLines(lines: any, limit: any, ctx: any, stack: any, lastIndex: any, cb: any): any;

Sorry, I don't have time to set correct types, but this file make your lib works with typescript

jjd314 and others added 30 commits May 22, 2014 16:21
Although the original comment said nobody uses those, Google sent me one today (TZID="(UTC-05:00) America/New_York", whatever that might mean).  Changed the split to a regexp.
eg. if we have the following in an ical
```
FREEBUSY;FBTYPE=FREE:
```
We ultimately end up with no start and end date values and it blows up
trying to replace the strings on undefined
Added better support for Recurrence Rules:
- Updates to specific recurrences of events now get their own entries in
a recurrences[] array, keyed by ISO date/time.  (Previously, their
records silently overwrote the main recurrence event)
- Exceptions to recurrences now appear in an exdate[] array, keyed by
ISO date/time.

Also added "knowledge" of the dtstamp, created, and lastmodified fields
so that they get stored as dates, not strings.

This should solve issues #57 and #63.
Code maintenance problems:
* Example.js should be pointing to node-ical, not ical now.
* ical should depend on rrule 2.1.0 or greater due to dependency issues
with underscore

Added tests:
* Verify that a recurrence-id doesn't overwrite the main entry
* Verify that exdates appear in the exdate array
* Verify that recurrence-id entries appear in the recurrences array
* Verify that the arrays are keyed by ISO date strings
jens-maus and others added 30 commits November 18, 2018 21:01
ignore time if type is date; add date type info
ignored the removal of request as it is definitly required but needs to
be replaced by something else of course.
Merge remote-tracking branch 'upstream/master'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.