Documentation
    Preparing search index...

    Type Alias StructsAPI

    Actual Type: Struct
    Note: Stripped to generate better documentation.

    The API for Structs.

    The Serializable equivalent of a vanilla JavaScript Object.

    type StructsAPI = {
        create: <T extends Record<string, Serializable>>(obj: T) => Struct<T>;
    }
    Index

    Properties

    Properties

    create: <T extends Record<string, Serializable>>(obj: T) => Struct<T>

    Actual Type: Method
    Note: Stripped to generate better documentation.

    Creates a Struct.

    Type Declaration

    const { containers } = createFutureMachine(db);

    containers.struct.create({ str: 'Hello', num: 10 });