Files
test/backend/src/utils/monkey-response.ts
Benjamin Falch 2bc741fb78
Some checks failed
Mark Stale PRs / stale (push) Has been cancelled
adding monkeytype
2026-04-23 13:53:44 +02:00

18 lines
362 B
TypeScript

import { MonkeyResponseType } from "@monkeytype/contracts/util/api";
export type MonkeyDataAware<T> = {
data: T | null;
};
export class MonkeyResponse<T = null>
implements MonkeyResponseType, MonkeyDataAware<T>
{
public message: string;
public data: T;
constructor(message: string, data: T) {
this.message = message;
this.data = data;
}
}