@aws-cdk-testing/cli-integ
Version:
Integration tests for the AWS CDK CLI
12 lines (11 loc) • 650 B
TypeScript
import type { IPreparedRunnerSource, ITestCliSource, ITestLibrarySource } from './source';
export interface PreparedSources {
readonly cli: IPreparedRunnerSource<ITestCliSource>;
readonly library: IPreparedRunnerSource<ITestLibrarySource>;
readonly toolkitLib: IPreparedRunnerSource<ITestLibrarySource>;
readonly cdkAssets: IPreparedRunnerSource<ITestCliSource>;
}
type SourceType<A> = A extends IPreparedRunnerSource<infer T> ? T : unknown;
export declare function serializeSources(sources: PreparedSources): void;
export declare function testSource<K extends keyof PreparedSources>(k: K): SourceType<PreparedSources[K]>;
export {};