Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing types #24

Merged
merged 2 commits into from
Nov 28, 2024
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
14 changes: 7 additions & 7 deletions src/build-coupled.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,19 +137,19 @@ export type EleventyConfiguration = JekyllConfiguration;
export type ParsedDataset =
| string[]
| Record<string, string>
| Record<string, Record<string, any>>
| Record<string, any>[];
| Record<string, Record<string, unknown>>
| Record<string, unknown>[];

interface ParsedCollectionItem {
[index: string]: any;
[index: string]: unknown;
/**
* The path to the file this was parsed from.
*/
path: string;
/**
* The collection key this is assigned to. Matches keys in `collections_config`.
*/
collection: string;
collection?: string;
/**
* The URL this file is served at once built.
*/
Expand Down Expand Up @@ -201,12 +201,12 @@ interface WithIntegrationOutput {
/**
* The output from build-coupled non-Jekyll/Hugo/Eleventy sites.
*/
export interface IntegrationOutput extends Configuration, WithIntegrationOutput {}
export type IntegrationOutput = Configuration & WithIntegrationOutput;

/**
* The output from build-coupled Hugo sites.
*/
export interface HugoIntegrationOutput extends HugoConfiguration, WithIntegrationOutput {}
export type HugoIntegrationOutput = HugoConfiguration & WithIntegrationOutput;

/**
* The output from build-coupled Jekyll sites.
Expand All @@ -221,4 +221,4 @@ export interface JekyllIntegrationOutput extends JekyllConfiguration, WithIntegr
/**
* The output from build-coupled Eleventy sites.
*/
export interface EleventyIntegrationOutput extends EleventyConfiguration, WithIntegrationOutput {}
export type EleventyIntegrationOutput = EleventyConfiguration & WithIntegrationOutput;
Loading