Skip to content

Commit

Permalink
feat: move ApiResponse type to shared
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Jan 20, 2025
1 parent 16b1728 commit b2d7fe5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions api.planx.uk/modules/analytics/metabase/collection/types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { z } from "zod";
import type { ValidatedRequestHandler } from "../../../../shared/middleware/validate.js";

type ApiResponse<T> = {
data?: T;
error?: string;
};
import type { ApiResponse } from "../shared/types.js";

/** Interface for incoming request, in camelCase */
export interface NewCollectionParams {
Expand Down
4 changes: 4 additions & 0 deletions api.planx.uk/modules/analytics/metabase/shared/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export type ApiResponse<T> = {
data?: T;
error?: string;
};

0 comments on commit b2d7fe5

Please sign in to comment.