Skip to content
Merged
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 packages/astro-github-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
githubLoader,
createOctokitFromEnv,
type ImportOptions,
type LoaderContext,
} from "@larkiny/astro-github-loader";

const REMOTE_CONTENT: ImportOptions[] = [
Expand Down Expand Up @@ -54,7 +55,7 @@ export const collections = {
configs: [config],
clear: config.clear,
dryRun: false, // Set to true for change detection only
}).load(context);
}).load(context as LoaderContext);
}
},
},
Expand Down
3 changes: 2 additions & 1 deletion packages/astro-github-loader/src/github.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ export type FetchOptions = RequestInit & {
};

/**
* @internal
* Astro loader context extended with optional entry type support.
* Use this type when calling `.load(context as LoaderContext)` in multi-loader patterns.
*/
export interface LoaderContext extends AstroLoaderContext {
/** @internal */
Expand Down
1 change: 1 addition & 0 deletions packages/astro-github-loader/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export type {
PathMappingValue,
EnhancedPathMapping,
VersionConfig,
LoaderContext,
} from "./github.types.js";

// Public API — types: transforms
Expand Down