Skip to content
Closed
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
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ let yaml: Yaml | undefined;
*/
type ProviderResult =
| { provider: string; type: string; resource: string; url?: undefined }
| { url: string; provider?: undefined; type?: undefined; resource?: undefined };
| {
url: string;
provider?: undefined;
type?: undefined;
resource?: undefined;
};

/**
* Image mapping types for Docker Compose plugin
Expand Down Expand Up @@ -351,6 +356,8 @@ function validateImageMappings(imageMappings?: ImageMappings): void {
}

export function createDockerComposePlugin(config?: DockerComposePluginConfig): DiagramsPlugin {
console.log("testing preview in livecodes");

// Validate configuration on creation
validateImageMappings(config?.imageMappings);

Expand Down
Loading