MCPcopy
hub / github.com/Effect-TS/effect / ReadonlySet

Function ReadonlySet

packages/effect/src/Schema.ts:7861–7871  ·  view source on GitHub ↗
(value: Value)

Source from the content-addressed store, hash-verified

7859 * @since 3.10.0
7860 */
7861export 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

Callers

nothing calls this directly

Calls 5

typeSchemaFunction · 0.85
asSchemaFunction · 0.85
transformInterface · 0.70
Array$Function · 0.70
ReadonlySetFromSelfFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…