httpexceptions
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "httpexceptions", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Provide exception for HTTP Rest API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -70,2 +70,18 @@ # HTTPExceptions [![Build Status](https://travis-ci.org/Romakita/httpexceptions.svg?branch=master)](https://travis-ci.org/Romakita/httpexceptions) | ||
## Use Typescript definition | ||
This module is written in Typescript. But don't use `import HttpExceptions = require('httpexceptions')` instead of | ||
`var httpException = require('httpexception');`. It's little buggy because, Error type in typescript is declared as | ||
variable / interface and when you import module, the compilator fail. | ||
So, you can find file definition `httpexceptions.d.ts` in the module. | ||
``` typescript | ||
/// <reference path="node_modules/httpexceptions/httpexceptions.d.ts" /> | ||
var httpException = require('httpexception'); | ||
`` | ||
## Test | ||
@@ -72,0 +88,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175034
58
3905
91