@ko-fi/handler
Version:
12 lines (11 loc) • 441 B
TypeScript
import { Config } from '@ko-fi/types';
/**
* Expects the json string of the 'data' field.
* Returns a http status code.
*/
export declare const kofiHandler: <TConfig>(data: string, config: Config<TConfig>, ctx: TConfig) => Promise<400 | 401 | 200>;
export declare enum Error {
VERIFICATION_TOKEN = "Ko-fi invalid verification token",
JSON = "Ko-fi invalid JSON object",
DATA_HANDLER = "Ko-fi data handler failed"
}