| 2909 | * @since 3.10.0 |
| 2910 | */ |
| 2911 | export 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 |
no outgoing calls
no test coverage detected