()
| 805 | * @since 4.0.6 |
| 806 | */ |
| 807 | export const encode = <IE = never, Done = unknown>(): Channel.Channel< |
| 808 | Arr.NonEmptyReadonlyArray<Uint8Array>, |
| 809 | XmlError | IE, |
| 810 | Done, |
| 811 | Arr.NonEmptyReadonlyArray<Event>, |
| 812 | IE, |
| 813 | Done |
| 814 | > => |
| 815 | Channel.map(makeChannel<Event, string, IE, Done>(() => new Writer(true)), Arr.map((text) => textEncoder.encode(text))) |
| 816 | |
| 817 | /** |
| 818 | * Converts an element tree back into events. |
nothing calls this directly
no test coverage detected