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

Function StructWithRest

packages/effect/src/Schema.ts:4182–4190  ·  view source on GitHub ↗
(
  schema: S,
  records: Records
)

Source from the content-addressed store, hash-verified

4180 * @since 4.0.0
4181 */
4182export function StructWithRest<
4183 const S extends StructWithRest.Objects,
4184 const Records extends StructWithRest.Records
4185>(
4186 schema: S,
4187 records: Records
4188): StructWithRest<S, Records> {
4189 return make(SchemaAST.structWithRest(schema.ast, records.map(SchemaAST.getAST)), { schema, records })
4190}
4191
4192/**
4193 * Namespace for `Tuple` type utilities.

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected