(value: Value)
| 7859 | * @since 3.10.0 |
| 7860 | */ |
| 7861 | export function ReadonlySet<Value extends Schema.Any>(value: Value): ReadonlySet$<Value> { |
| 7862 | return transform( |
| 7863 | Array$(value), |
| 7864 | ReadonlySetFromSelf(typeSchema(asSchema(value))), |
| 7865 | { |
| 7866 | strict: true, |
| 7867 | decode: (i) => new Set(i), |
| 7868 | encode: (a) => Array.from(a) |
| 7869 | } |
| 7870 | ) |
| 7871 | } |
| 7872 | |
| 7873 | /** |
| 7874 | * @category api interface |
nothing calls this directly
no test coverage detected
searching dependent graphs…