* Configures default value. * * @param {DefaultValue} defaultValue Default value. * * @returns {this} Current instance of type metadata.
(defaultValue: DefaultValue)
| 1225 | * @returns {this} Current instance of type metadata. |
| 1226 | */ |
| 1227 | public hasDefaultValue(defaultValue: DefaultValue): this |
| 1228 | { |
| 1229 | this.typeOptions.defaultValue = defaultValue; |
| 1230 | this.currentTypeState = new UnresolvedTypeState<TObject>(this); |
| 1231 | |
| 1232 | return this; |
| 1233 | } |
| 1234 | |
| 1235 | /** |
| 1236 | * Configures serialized default value. |