mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-27 00:04:37 +08:00
33 lines
595 B
TypeScript
33 lines
595 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;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
interface Context {
|
||
|
configuration: Configuration;
|
||
|
decodedToken: {
|
||
|
uid: string | null;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
interface Request extends ExpressRequest {
|
||
|
ctx: Context;
|
||
|
}
|
||
|
}
|