MCPcopy Create free account
hub / github.com/effect-app/libs / Something

Class Something

packages/infra/test/query.test.ts:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25const someUnion = S.Union([str, num])
26
27export class Something extends S.Class<Something>("Something")({
28 id: S.StringId.withConstructorDefault,
29 displayName: S.NonEmptyString255,
30 name: S.NullOr(S.NonEmptyString255).withConstructorDefault,
31 n: S.Date.withConstructorDefault,
32 union: someUnion.pipe(S.withConstructorDefault(Effect.succeed({ _tag: "string" as const, value: "hi" })))
33}) {}
34export declare namespace Something {
35 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
36 export interface Encoded extends S.Codec.Encoded<typeof Something> {}

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…