( tag: string, parse: (value: string) => Effect.Effect<A, string, Environment> )
| 108 | export const isBoolean = (p: Primitive<unknown>): p is Primitive<boolean> => p._tag === "Boolean" |
| 109 | |
| 110 | const makePrimitive = <A>( |
| 111 | tag: string, |
| 112 | parse: (value: string) => Effect.Effect<A, string, Environment> |
| 113 | ): Primitive<A> => |
| 114 | Object.assign(Object.create(Proto), { |
| 115 | _tag: tag, |
| 116 | parse |
| 117 | }) |
| 118 | |
| 119 | const makeSchemaPrimitive = <T>( |
| 120 | tag: string, |
no test coverage detected