Skip to content

Commit

Permalink
export types of content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
vvakame committed Oct 27, 2016
1 parent 11f0445 commit 3fdc528
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions content-type/content-type-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ obj = contentType.parse(res);

var str: string = contentType.format({type: 'image/svg+xml'});

var media: contentType.MediaType;
contentType.format(media);
6 changes: 3 additions & 3 deletions content-type/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
// Definitions by: Hiroki Horiuchi <https://github.com/horiuchi>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

declare var x: ContentType.StaticFunctions;
export = x;
declare var ct: ct.StaticFunctions;
export = ct;

declare namespace ContentType {
declare namespace ct {
interface StaticFunctions {
parse(string: string): MediaType;
parse(req: { headers: any; }): MediaType;
Expand Down

0 comments on commit 3fdc528

Please sign in to comment.