Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare class SemanticReleaseError extends Error {
public name: string;
public message: string;
public code?: string;
public details?: string;
constructor(message?: string, code?: string, details?: string);
}

export = SemanticReleaseError;
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"xo": "^0.23.0"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/semantic-release/error#readme",
"keywords": [
Expand All @@ -30,6 +31,7 @@
],
"license": "MIT",
"main": "index.js",
"typings": "index.d.ts",
"nyc": {
"include": [
"index.js"
Expand Down