Function getStateMethods

  • Creates the state factory bound to a default object name and the current route match. Invoking the returned factory yields the async storage methods (get, put, delete, deleteAll, list) for a Durable Object instance.

    Parameters

    • defaultObjectName: string

      Object name used when the caller omits one (usually "Common").

    • Optional matches: MatchResult<any>

      Current route match, used to derive the instance id from objectStateMapping.

    Returns StateFn

    A StateFn factory.

Generated using TypeDoc