import type { Block } from '../core/index.ts'; import type { OutputType } from './output-type.ts'; import type { Pass } from './pass.ts'; /** * Given an array of blocks, get the output type from the last block * * @public */ export type GetSequenceOutput> = T extends readonly [Block] ? Pass : T extends readonly [infer Only extends Block] ? OutputType : T extends readonly [...infer Rest, infer Last] ? Last extends Block ? GetSequenceOutput : Last extends Block ? OutputType : ['Item wasnt a block'] : ['No valid arrray remaining']; //# sourceMappingURL=get-sequence-output.d.ts.map