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

Function getClassTransformation

packages/effect/src/Schema.ts:14165–14177  ·  view source on GitHub ↗
(self: new(...args: ReadonlyArray<any>) => any)

Source from the content-addressed store, hash-verified

14163}
14164
14165function getClassTransformation(self: new(...args: ReadonlyArray<any>) => any) {
14166 return new SchemaTransformation.Transformation<any, any, never, never>(
14167 SchemaGetter.transform((input) =>
14168 new self(input, {
14169 "~payload": {
14170 token: payloadToken,
14171 value: input
14172 }
14173 })
14174 ),
14175 SchemaGetter.passthrough()
14176 )
14177}
14178
14179function getClassTypeId(identifier: string) {
14180 return `~effect/Schema/Class/${identifier}`

Callers 1

getClassSchemaFactoryFunction · 0.85

Calls 1

transformMethod · 0.65

Tested by

no test coverage detected