Skip to content

Commit

Permalink
Merge pull request #217 from kourge/typings_add_rrulestr
Browse files Browse the repository at this point in the history
Add typings for `rrulestr`
  • Loading branch information
arolson101 authored Jul 24, 2018
2 parents 02cd1af + 148ee52 commit 211dc3e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,18 @@ declare namespace RRule {

function fromString(value: string): RRule;

function rrulestr(s: string, options?: RRuleStrOptions): RRule | RRuleSet;

interface RRuleStrOptions {
dtstart?: Date;
cache?: boolean;
unfold?: boolean;
forceset?: boolean;
compatible?: boolean;
ignoretz?: boolean;
tzinfos?: any;
}

class RRuleSet extends RRule {
/**
*
Expand All @@ -195,4 +207,4 @@ declare namespace RRule {
*/
clone(): RRuleSet;
}
}
}

0 comments on commit 211dc3e

Please sign in to comment.