Skip to content

Commit

Permalink
Fix TypeScript declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
lenovouser authored and jpmonette committed Aug 6, 2018
1 parent 9993910 commit a6a5869
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Jean-Philippe Monette <contact@jpmonette.net>",
"license": "MIT",
"main": "lib/feed.js",
"types": "dist/feed.d.ts",
"types": "lib/feed.d.ts",
"scripts": {
"build": "rm -rf lib/ && mkdir lib && tsc",
"prepublish": "npm run build",
Expand Down
2 changes: 2 additions & 0 deletions src/atom1.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference path="types/index.ts" />

import * as xml from "xml";
import { generator } from "./config";

Expand Down
2 changes: 2 additions & 0 deletions src/feed.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference path="types/index.ts" />

import renderAtom from "./atom1";
import renderJSON from "./json";
import renderRSS from "./rss2";
Expand Down
2 changes: 2 additions & 0 deletions src/json.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference path="types/index.ts" />

export default (ins: Feed) => {
const { options, items, extensions } = ins;
let feed: any = {
Expand Down
2 changes: 2 additions & 0 deletions src/rss2.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference path="types/index.ts" />

import * as xml from "xml";

import { generator } from "./config";
Expand Down
File renamed without changes.

0 comments on commit a6a5869

Please sign in to comment.