Skip to content

Commit

Permalink
move types, make less forky
Browse files Browse the repository at this point in the history
  • Loading branch information
arolson101 committed Feb 14, 2018
1 parent 3f970b3 commit 300a9fe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
17 changes: 14 additions & 3 deletions lib/rrule.d.ts → index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
// Type definitions for rrule 2.1.0
// Project: https://github.com/jkbrzt/rrule
// Definitions by: James Bracy <https://github.com/waratuman>
// Definitions by: James Bracy <https://github.com/waratuman>, Andrew Olson <https://github.com/arolson101>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare module 'rrule-alt' {
export = RRule;
export as namespace RRule;

/**
* Use `import rrule = require("rrule")` for AMD and `import { RRule } from "rrule"` for CommonJS loading.
*/
export = RRule;


// For CommonJS it must be imported as `require("rrule").RRule`.
import RRuleAlias = RRule;
declare module "rrule" {
type RRule = RRuleAlias;
const RRule: typeof RRuleAlias;
}

declare namespace RRule {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rrule-alt",
"version": "2.2.7",
"description": "JavaScript library for working with recurrence rules for calendar dates.",
"homepage": "https://github.com/arolson101/rrule-alt",
"homepage": "http://jakubroztocil.github.io/rrule/",
"keywords": [
"dates",
"recurrences",
Expand All @@ -12,10 +12,9 @@
],
"author": "Jakub Roztocil and Lars Schöning",
"main": "lib/rrule",
"types": "lib/rrule.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/arolson101/rrule-alt.git"
"url": "git://github.com/jakubroztocil/rrule.git"
},
"scripts": {
"test": "standard && mocha"
Expand Down

0 comments on commit 300a9fe

Please sign in to comment.