File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11import { ApiClient , BugSplatResponse } from '@common' ;
2- import { CrashDetails } from '@crash' ;
2+ import { CrashDetails , PostNotesResponse } from '@crash' ;
33import ac from 'argument-contracts' ;
44import {
55 CrashDetailsRawResponse ,
@@ -91,7 +91,11 @@ export class CrashApiClient {
9191 return json as SuccessResponse ;
9292 }
9393
94- postNotes ( database : string , id : number , notes : string ) : Promise < BugSplatResponse > {
94+ postNotes (
95+ database : string ,
96+ id : number ,
97+ notes : string
98+ ) : Promise < BugSplatResponse < PostNotesResponse > > {
9599 const formData = this . _client . createFormData ( ) ;
96100 formData . append ( 'update' , 'true' ) ;
97101 formData . append ( 'database' , database ) ;
Original file line number Diff line number Diff line change @@ -6,4 +6,9 @@ export { Register } from './register/register';
66export { StackFrame , VariableValuePair } from './stack-frame/stack-frame' ;
77export { GroupableThreadCollection } from './thread-collection/groupable-thread-collection' ;
88export { ThreadCollection } from './thread-collection/thread-collection' ;
9-
9+ export interface PostNotesResponse {
10+ status : 'success' ,
11+ database : string ,
12+ id : number ,
13+ notes : string ,
14+ }
You can’t perform that action at this time.
0 commit comments