( schema: S, records: Records )
| 4180 | * @since 4.0.0 |
| 4181 | */ |
| 4182 | export 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. |