Skip to content

Commit c11b0fa

Browse files
authored
Merge pull request #37 from cloudgraphdev/feat-errors-2
feat(api): add errors to result interface
2 parents 83a392b + 6b66fce commit c11b0fa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/types/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,16 @@ export interface Entity {
6363
data: any[] | any
6464
}
6565

66+
export interface ProviderError {
67+
service: string
68+
function: string
69+
message: string
70+
}
71+
6672
export interface ProviderData {
6773
entities: Entity[]
6874
connections: { [key: string]: ServiceConnection[] }
75+
errors?: ProviderError[]
6976
}
7077

7178
export type LoggerInput = string | { [key: string]: any } | unknown

0 commit comments

Comments
 (0)