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

Interface Struct

packages/effect/src/Schema.ts:2911–2930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2909 * @since 3.10.0
2910 */
2911export interface Struct<Fields extends Struct.Fields> extends
2912 AnnotableClass<
2913 Struct<Fields>,
2914 Simplify<Struct.Type<Fields>>,
2915 Simplify<Struct.Encoded<Fields>>,
2916 Struct.Context<Fields>
2917 >
2918{
2919 readonly fields: Readonly<Fields>
2920 readonly records: readonly []
2921 make(
2922 props: RequiredKeys<Struct.Constructor<Fields>> extends never ? void | Simplify<Struct.Constructor<Fields>>
2923 : Simplify<Struct.Constructor<Fields>>,
2924 options?: MakeOptions
2925 ): Simplify<Struct.Type<Fields>>
2926
2927 annotations(annotations: Annotations.Schema<Simplify<Struct.Type<Fields>>>): Struct<Fields>
2928 pick<Keys extends ReadonlyArray<keyof Fields>>(...keys: Keys): Struct<Simplify<Pick<Fields, Keys[number]>>>
2929 omit<Keys extends ReadonlyArray<keyof Fields>>(...keys: Keys): Struct<Simplify<Omit<Fields, Keys[number]>>>
2930}
2931
2932/**
2933 * @category constructors

Callers 24

GetUserClass · 0.65
rpc-schemas.tsFile · 0.65
UsersClientClass · 0.65
makeFunction · 0.65
httpClient.tsFile · 0.65
headersFunction · 0.65
PgContainerClass · 0.65
GroupsApiClass · 0.65
Struct.tst.tsFile · 0.65
f2Function · 0.65
Schema.tst.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected