webstreamr-github/src/handler/types.ts

13 lines
278 B
TypeScript

import { Context, StreamWithMeta } from '../types';
export interface Handler {
readonly id: string;
readonly label: string;
readonly contentTypes: string[];
readonly languages: string[];
readonly handle: (ctx: Context, id: string) => Promise<StreamWithMeta[]>;
}