Constructs a new namespace.
An object containing names to subtypes for all defs that are choices.
The name of the available features.
The defs for all of the core haystack value types.
A object that maps def names to their respective tagOn defs.
A list of all the tagOn names.
StaticdefaultThe default namespace for the environment.
Set the default namespace for the environment.
The new default namespace.
Return the Haystack kind value from the def. If the def is invalid or a kind cannot be ascertained then return undefined.
Please note, curVal and writeVal are scalars but don't extend
a def that could relate to a concrete type (i.e. number or bool). This implies
these values can be any scalar and hence match multiple kinds. In this case undefined
will be returned for the kind.
The name of the def to get the kind for.
The kind or undefined it one cannot be found.
Return the first containment ref def that matches the specified name.
Please note, this will filter out any defs that are marked as deprecated.
The name of the def to search the ref for.
The containment ref def.
Query a subject's relationship.
Relationships model how entities are related to one another via instance to instance relationships versus def to def associations.
https://project-haystack.dev/doc/docHaystack/Relationships#querying
True if a match is made.
Analyze the subject dict and return its implemented defs.
The subject dict.
The reflected defs.
Validates a dict for a tag.
try {
namespace.validate('site', new HDict({ site: HMarker.make() }))
}
catch(err) {
console.error(err)
}
The name of the tag to validate.
The dict to validate against.
StaticgetStaticgetStaticisStaticisStaticsplit
Haystack namespace.
A namespace holds a collection of normalized defs.