Skip to content

Commit

Permalink
Merge pull request #24 from CloudCannon/feat/iterating-on-docs
Browse files Browse the repository at this point in the history
Add missing types
  • Loading branch information
bglw authored Nov 28, 2024
2 parents a13ba93 + 13a7321 commit ecd631c
Show file tree
Hide file tree
Showing 5 changed files with 351 additions and 163 deletions.
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

0 comments on commit ecd631c

Please sign in to comment.