UNPKG

@sectester/scan

Version:

The package defines a simple public API to manage scans and their expectations.

6 lines (5 loc) 190 B
export interface BodyConverter<T> { canHandle(data: unknown, mimeType?: string): data is T; convert(data: T, mimeType?: string): Promise<string>; getMimeType(data: T): string; }