Type alias StateFn

StateFn: ((objectName?, objectId?, isCloudflareObjectId?) => StateMethods)

Factory returning the storage methods for a Durable Object instance.

Type declaration

    • (objectName?, objectId?, isCloudflareObjectId?): StateMethods
    • Parameters

      • Optional objectName: string

        Durable Object class name; defaults to "Common".

      • Optional objectId: string

        Explicit instance id; derived from objectStateMapping when omitted.

      • Optional isCloudflareObjectId: boolean

        Treat objectId as a raw Cloudflare object id.

      Returns StateMethods

Generated using TypeDoc