monkeytype/backend/types/types.d.ts
Bruce Berrios 61f16584c9
Action anti cheat step (#2570)
* Add anti-cheat check

* Add anti-cheat step

* Test

* Revert

* .

* Fix
2022-02-22 23:02:37 +01:00

35 lines
653 B
TypeScript

type ExpressRequest = import("express").Request;
declare namespace MonkeyTypes {
interface Configuration {
maintenance: boolean;
quoteReport: {
enabled: boolean;
maxReports: number;
contentReportLimit: number;
};
quoteSubmit: {
enabled: boolean;
};
resultObjectHashCheck: {
enabled: boolean;
};
monkeyTokens: {
enabled: boolean;
};
enableSavingResults: {
enabled: boolean;
};
}
interface Context {
configuration: Configuration;
decodedToken: {
uid: string | null;
};
}
interface Request extends ExpressRequest {
ctx: Context;
}
}