interface IContentFetcher

Content fetcher abstraction - provides content from any source. This allows the compiler to work with pre-fetched content or custom fetch implementations.

Methods

fetch(source: string): Promise<string>

Fetches content from a source.

canHandle(source: string): boolean

Checks if this fetcher can handle the given source.

Usage

import { type IContentFetcher } from ".";