We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a174fa commit d36fa46Copy full SHA for d36fa46
src/sentry/static/sentry/app/api.tsx
@@ -92,6 +92,7 @@ type FunctionCallback<Args extends any[] = any[]> = (...args: Args) => void;
92
type RequestCallbacks = {
93
success?: (data: any, textStatus?: string, xhr?: JQueryXHR) => void;
94
complete?: (jqXHR: JQueryXHR, textStatus: string) => void;
95
+ // TODO: refine this type later
96
error?: FunctionCallback;
97
};
98
@@ -118,6 +119,7 @@ export class Client {
118
119
* Check if the API response says project has been renamed.
120
* If so, redirect user to new project slug
121
*/
122
123
hasProjectBeenRenamed(response: JQueryXHR) {
124
const code = get(response, 'responseJSON.detail.code');
125
0 commit comments