MCPcopy Create free account
hub / github.com/Effect-TS/effect / isTransformation

Function isTransformation

packages/effect/src/SchemaTransformation.ts:195–197  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

193 * @since 4.0.0
194 */
195export function isTransformation(u: unknown): u is Transformation<any, any, unknown, unknown> {
196 return Predicate.hasProperty(u, TypeId) && u[TypeId] === TypeId
197}
198
199/**
200 * Constructs a `Transformation` from an object with `decode` and `encode`

Callers 1

makeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected