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