@ignore
(value: Value)
| 7880 | |
| 7881 | /** @ignore */ |
| 7882 | function set<Value extends Schema.Any>(value: Value): Set$<Value> { |
| 7883 | return transform( |
| 7884 | Array$(value), |
| 7885 | SetFromSelf(typeSchema(asSchema(value))), |
| 7886 | { |
| 7887 | strict: true, |
| 7888 | decode: (i) => new Set(i), |
| 7889 | encode: (a) => Array.from(a) |
| 7890 | } |
| 7891 | ) |
| 7892 | } |
| 7893 | |
| 7894 | export { |
| 7895 | /** |
no test coverage detected