MCPcopy Create free account
hub / github.com/dipscope/TypeManager.TS / hasDefaultValue

Method hasDefaultValue

src/type-metadata.ts:1227–1233  ·  view source on GitHub ↗

* Configures default value. * * @param {DefaultValue} defaultValue Default value. * * @returns {this} Current instance of type metadata.

(defaultValue: DefaultValue)

Source from the content-addressed store, hash-verified

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.

Callers 1

configureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected