Skip to content

Commit

Permalink
feat: export Data and JSendResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Dec 11, 2024
1 parent 50801ac commit ef24218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/@hugomods/jsend/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type Data = unknown;
export type Data = unknown;

export const STATUS_ERROR = 'error';
export const STATUS_FAIL = 'fail';
Expand All @@ -12,7 +12,7 @@ export const STATUS_SUCCESS = 'success';
* @property {number} [code] - The error code.
* @property {string} [message] - The error message.
*/
interface JSendResponse {
export interface JSendResponse {
status: string;
data?: Data;
code?: number;
Expand Down

0 comments on commit ef24218

Please sign in to comment.