(separator: string)
| 4779 | * @since 3.10.0 |
| 4780 | */ |
| 4781 | export const split = (separator: string): transform<SchemaClass<string>, Array$<typeof String$>> => |
| 4782 | transform( |
| 4783 | String$.annotations({ description: "a string that will be split" }), |
| 4784 | Array$(String$), |
| 4785 | { |
| 4786 | strict: true, |
| 4787 | decode: (i) => i.split(separator), |
| 4788 | encode: (a) => a.join(separator) |
| 4789 | } |
| 4790 | ) |
| 4791 | |
| 4792 | /** |
| 4793 | * @since 3.10.0 |
nothing calls this directly
no test coverage detected
searching dependent graphs…