webstreamr/src/handler/types.ts

13 lines
268 B
TypeScript

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