| 145 | * @since 4.0.0 |
| 146 | */ |
| 147 | export interface BottomWithoutNew< |
| 148 | out T, |
| 149 | out E, |
| 150 | out RD, |
| 151 | out RE, |
| 152 | out Ast extends SchemaAST.AST, |
| 153 | out Rebuild extends Top, |
| 154 | out TypeMakeIn = T, |
| 155 | out Iso = T, |
| 156 | in out TypeParameters extends ReadonlyArray<Constraint> = readonly [], |
| 157 | out TypeMake = TypeMakeIn, |
| 158 | out TypeMutability extends Mutability = "readonly", |
| 159 | out TypeOptionality extends Optionality = "required", |
| 160 | out TypeConstructorDefault extends ConstructorDefault = "no-default", |
| 161 | out EncodedMutability extends Mutability = "readonly", |
| 162 | out EncodedOptionality extends Optionality = "required" |
| 163 | > extends Pipeable.Pipeable { |
| 164 | readonly [TypeId]: typeof TypeId |
| 165 | |
| 166 | readonly "ast": Ast |
| 167 | readonly "Rebuild": Rebuild |
| 168 | readonly "~type.parameters": TypeParameters |
| 169 | |
| 170 | readonly "Type": T |
| 171 | readonly "Encoded": E |
| 172 | readonly "DecodingServices": RD |
| 173 | readonly "EncodingServices": RE |
| 174 | |
| 175 | readonly "~type.make.in": TypeMakeIn |
| 176 | readonly "~type.make": TypeMake // useful to type the `refine` interface |
| 177 | readonly "~type.constructor.default": TypeConstructorDefault |
| 178 | readonly "Iso": Iso |
| 179 | |
| 180 | readonly "~type.mutability": TypeMutability |
| 181 | readonly "~type.optionality": TypeOptionality |
| 182 | readonly "~encoded.mutability": EncodedMutability |
| 183 | readonly "~encoded.optionality": EncodedOptionality |
| 184 | |
| 185 | annotate(annotations: Annotations.Bottom<this["Type"], this["~type.parameters"]>): this["Rebuild"] |
| 186 | annotateKey(annotations: Annotations.Key<this["Type"]>): this["Rebuild"] |
| 187 | check(...checks: readonly [SchemaAST.Check<this["Type"]>, ...Array<SchemaAST.Check<this["Type"]>>]): this["Rebuild"] |
| 188 | rebuild(ast: this["ast"]): this["Rebuild"] |
| 189 | /** |
| 190 | * Constructs a value from the make input representation synchronously. |
| 191 | * |
| 192 | * **When to use** |
| 193 | * |
| 194 | * Use when constructor input is trusted or when validation failure |
| 195 | * should abort with a thrown `Error`. |
| 196 | * |
| 197 | * **Details** |
| 198 | * |
| 199 | * Applies constructor defaults and type-side validation according to |
| 200 | * `MakeOptions`. |
| 201 | * |
| 202 | * **Gotchas** |
| 203 | * |
| 204 | * Throws an `Error` with the schema issue in its `cause` when validation |
no outgoing calls
no test coverage detected