MCPcopy Create free account
hub / github.com/arktypeio/arktype / default

Method default

ark/type/variants/base.ts:464–464  ·  view source on GitHub ↗

* #### https://arktype.io/docs/objects#properties-defaultable | defaultable definition * * ✅ object defaults can be returned from a function * ⚠️ throws if the default value is not allowed * @chainedDefinition * * @example * const Theme = type("'light' | 'dark'") * const Sett

(
		value: value
	)

Source from the content-addressed store, hash-verified

462 * const defaults = Settings({})
463 */
464 default<const value extends defaultFor<this["inferIn"]>>(
465 value: value
466 ): [this, "=", value]
467

Callers 15

ajvOfFunction · 0.65
ajvModuleFunction · 0.65
scenarios.tsFile · 0.65
orders.tsFile · 0.65
users.tsFile · 0.65
orders.tsFile · 0.65
users.tsFile · 0.65
issues.tsFile · 0.65
projects.tsFile · 0.65
writeAjvAppFunction · 0.65
common.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected