(
from: AST,
transformation:
| SchemaTransformation.Transformation<any, any, any, any>
| SchemaTransformation.Middleware<any, any, any, any, any, any>,
to: A
)
| 3165 | |
| 3166 | /** @internal */ |
| 3167 | export function struct<Fields extends Schema.Struct.Fields>( |
| 3168 | fields: Fields, |
| 3169 | checks: Checks | undefined, |
| 3170 | annotations?: Schema.Annotations.Annotations |
| 3171 | ): Objects { |
| 3172 | return new Objects( |
| 3173 | Reflect.ownKeys(fields).map((key) => { |
| 3174 | return new PropertySignature(key, fields[key].ast) |
| 3175 | }), |
| 3176 | [], |
| 3177 | annotations, |
| 3178 | checks |
| 3179 | ) |
no test coverage detected
searching dependent graphs…