mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-14 12:08:11 +00:00
20 lines
292 B
TypeScript
20 lines
292 B
TypeScript
import { ResponseT } from "@server/types/Response";
|
|
|
|
export const response = <T>({
|
|
data,
|
|
success,
|
|
error,
|
|
message,
|
|
status,
|
|
}: ResponseT<T>) => {
|
|
return {
|
|
data,
|
|
success,
|
|
error,
|
|
message,
|
|
status,
|
|
};
|
|
};
|
|
|
|
export default response;
|