Skip to main content

JsonableTypeWith TypeAlias

Type constraint for types that are likely serializable as JSON or have a custom alternate type.

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/datastore-definitions/legacy.

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

Signature

export type JsonableTypeWith<T> = undefined | null | boolean | number | string | T | Internal_InterfaceOfJsonableTypesWith<T> | ArrayLike<JsonableTypeWith<T>>;

Type Parameters

Parameter Description
T

Remarks

Use JsonableTypeWith<never> for just JSON serializable types. See Jsonable for serialization pitfalls.