
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.
@xylabs/object-model
Advanced tools
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
@xylabs/object-model
optional log: boolean | Logger;
optional log: boolean | Logger;
required: false;
optional log: boolean | Logger;
required: true;
type AnyObject = Record<TypedKey, unknown>;
Any object, which means that it does not enforce the set of fields that it has. Extending from AnyObject will result in a type that includes the universal set of field names
type AsOptionalTypeFunction<T> = <TType>(value) => undefined | TType;
T extends AnyNonPromise = AnyNonPromise
TType extends AnyNonPromise
AnyNonPromise
undefined | TType
type AsTypeFunction<T> = {
<TType> (value): undefined | TType;
<TType> (value, config): TType;
<TType> (value, config): undefined | TType;
<TType> (value, assert): undefined | TType;
<TType> (value, assert, config): TType;
<TType> (value, assert, config): undefined | TType;
};
T extends AnyNonPromise = AnyNonPromise
<TType>(value): undefined | TType;
TType extends AnyNonPromise
AnyNonPromise
undefined | TType
<TType>(value, config): TType;
TType extends AnyNonPromise
AnyNonPromise
TType
<TType>(value, config): undefined | TType;
TType extends AnyNonPromise
AnyNonPromise
TypeCheckConfig | TypeCheckOptionalConfig
undefined | TType
<TType>(value, assert): undefined | TType;
TType extends AnyNonPromise
AnyNonPromise
StringOrAlertFunction<TType>
undefined | TType
<TType>(
value,
assert,
config): TType;
TType extends AnyNonPromise
AnyNonPromise
StringOrAlertFunction<TType>
TType
<TType>(
value,
assert,
config): undefined | TType;
TType extends AnyNonPromise
AnyNonPromise
StringOrAlertFunction<TType>
TypeCheckConfig | TypeCheckOptionalConfig
undefined | TType
type Compare<T> = (a, b) => number;
T
T
T
number
type StringOrAlertFunction<T> = string | AssertExMessageFunc<T>;
T extends AnyNonPromise
type TypeCheck<T> = {
(obj): obj is T;
(obj, config): obj is T;
(obj, config): obj is T;
};
T extends TypedValue
(obj): obj is T;
AnyNonPromise
obj is T
(obj, config): obj is T;
AnyNonPromise
obj is T
(obj, config): obj is T;
AnyNonPromise
undefined | number | TypeCheckConfig
obj is T
Part of sdk-js
See the LICENSE file for license details
FAQs
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
The npm package @xylabs/object-model receives a total of 1,201 weekly downloads. As such, @xylabs/object-model popularity was classified as popular.
We found that @xylabs/object-model demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.