Skip to content

Commit 6bb3e29

Browse files
committed
updated ErrorConfig interface
1 parent 13c29c9 commit 6bb3e29

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import ExtendableError from 'extendable-error';
22
export interface ErrorConfig {
33
message: string;
4-
time_thrown: string;
5-
data: any;
6-
options: any;
4+
time_thrown?: string;
5+
data?: any;
6+
options?: any;
77
}
88
export interface ErrorInfo {
99
message: string;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apollo-errors",
3-
"version": "1.5.1",
3+
"version": "1.6.1",
44
"description": "Machine-readable custom errors for Apollostack's GraphQL server",
55
"main": "dist/index.js",
66
"scripts": {

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const isObject = d => Object.prototype.toString.call(d) === '[object Object]';
66

77
export interface ErrorConfig {
88
message: string;
9-
time_thrown: string;
10-
data: any,
11-
options: any,
9+
time_thrown?: string;
10+
data?: any,
11+
options?: any,
1212
}
1313

1414
export interface ErrorInfo {

0 commit comments

Comments
 (0)