web3browser.io/src/backend/types.ts

17 lines
318 B
TypeScript
Raw Normal View History

2023-10-11 13:46:46 +00:00
export interface ContentProvider {
supports: (uri: string) => boolean;
fetchContent: (
uri: string,
path: string,
query?: string,
) => Promise<Response>;
}
export interface ContentFilter {
process: (
response: Response,
mineType: string,
requestor: string,
) => Promise<Response>;
2023-10-11 13:46:46 +00:00
}