(schema: S)
| 801 | */ |
| 802 | export const decodeSchema = |
| 803 | <S extends Schema.Constraint>(schema: S) => |
| 804 | <IE = never, Done = unknown>(options?: DecodeSchemaOptions, parseOptions?: SchemaAST.ParseOptions): Channel.Channel< |
| 805 | Arr.NonEmptyReadonlyArray<S["Type"]>, |
| 806 | IE | CsvError | Schema.SchemaError, |
| 807 | Done, |
| 808 | Arr.NonEmptyReadonlyArray<Uint8Array>, |
| 809 | IE, |
| 810 | Done, |
| 811 | S["DecodingServices"] |
| 812 | > => |
| 813 | Channel.pipeTo( |
| 814 | Channel.decodeText<IE, Done>("utf-8", { ignoreBOM: true }), |
| 815 | decodeSchemaString(schema)<IE, Done>(options, parseOptions) |
| 816 | ) |
| 817 | |
| 818 | const textEncoder = new TextEncoder() |
| 819 |
nothing calls this directly
no test coverage detected