Skip to content

Commit 2026141

Browse files
committed
fix: post notes response type
1 parent 43fc6ca commit 2026141

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/crash/crash-api-client/crash-api-client.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ApiClient, BugSplatResponse } from '@common';
2-
import { CrashDetails } from '@crash';
2+
import { CrashDetails, PostNotesResponse } from '@crash';
33
import ac from 'argument-contracts';
44
import {
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);

src/crash/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ export { Register } from './register/register';
66
export { StackFrame, VariableValuePair } from './stack-frame/stack-frame';
77
export { GroupableThreadCollection } from './thread-collection/groupable-thread-collection';
88
export { ThreadCollection } from './thread-collection/thread-collection';
9-
9+
export interface PostNotesResponse {
10+
status: 'success',
11+
database: string,
12+
id: number,
13+
notes: string,
14+
}

0 commit comments

Comments
 (0)