Start admin pages
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import superjson from 'superjson';
|
||||
|
||||
export function sendJson<T extends object>(data: T) {
|
||||
const hackData = {
|
||||
...data,
|
||||
toJSON() {
|
||||
return this;
|
||||
}
|
||||
};
|
||||
return superjson.stringify(hackData) as unknown as typeof hackData;
|
||||
}
|
||||
Reference in New Issue
Block a user