interface Reader { chunk: unknown; } type Parser = (reader: R2) => 2; interface TextReader { chunk: string; } interface ByteReader { chunk: Uint8Array; } const byte: Parser = () => 2; const test1: Parser = byte; type TestParser = Parser; const test2: TestParser = byte; // @ts-expect-error const test3: (reader: R2) => 2 = byte;