mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-29 08:30:05 +02:00
19 lines
292 B
TypeScript
19 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;
|