Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -453,4 +453,5 @@ export default {
This project was inspired by

- [sitefetch](https://github.com/egoist/sitefetch) CLI made by [@egoist](https://github.com/egoist). While sitefetch is great for fetching documentation and websites, codefetch focuses on fetching local codebases for AI analysis.
[unjs](https://github.com/unjs) - for bringing us the best javascript tooling system
[unjs](https://github.com/unjs) - for bringing us the best javascript tooling system

8 changes: 8 additions & 0 deletions packages/sdk/dist-browser/browser.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,17 @@ interface CodefetchConfig {
format?: OutputFormat;
}

type CacheStrategy = "auto" | "force" | "bypass" | "refresh" | "validate";

interface FetchOptions extends Partial<CodefetchConfig> {
source?: string;
format?: OutputFormat;
cache?: boolean | CacheStrategy;
cacheKey?: string;
cacheTTL?: number;
cacheNamespace?: string;
cacheBaseUrl?: string;
noCache?: boolean;
}

/**
Expand Down
8 changes: 8 additions & 0 deletions packages/sdk/dist-browser/browser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,17 @@ interface CodefetchConfig {
format?: OutputFormat;
}

type CacheStrategy = "auto" | "force" | "bypass" | "refresh" | "validate";

interface FetchOptions extends Partial<CodefetchConfig> {
source?: string;
format?: OutputFormat;
cache?: boolean | CacheStrategy;
cacheKey?: string;
cacheTTL?: number;
cacheNamespace?: string;
cacheBaseUrl?: string;
noCache?: boolean;
}

/**
Expand Down
Loading
Loading