Skip to main content

JsonCompatibleReadOnly TypeAlias

Use for readonly view of Json compatible data.

This API is provided as an alpha preview and may change without notice.

To use, import via fluid-framework/alpha.

For more information about our API support guarantees, see here.

Signature

export type JsonCompatibleReadOnly = string | number | boolean | null | readonly JsonCompatibleReadOnly[] | JsonCompatibleReadOnlyObject;

Remarks

This does not robustly forbid non json comparable data via type checking, but instead mostly restricts access to it.