Algorand TypeScript
    Preparing search index...

    Type Alias GlobalState<ValueType>

    A proxy for manipulating a global state field

    type GlobalState<ValueType> = {
        hasValue: boolean;
        value: ValueType;
        delete(): void;
    }

    Type Parameters

    • ValueType

      The type of the value being stored - must be a serializable type

    Index

    Properties

    Methods

    Properties

    hasValue: boolean

    Gets a boolean value indicating if global state field currently has a value

    value: ValueType

    Get or set the value of this global state field

    Methods