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").
Optionalmatches: MatchResult<any>
Current route match, used to derive the instance id from objectStateMapping.
Creates the
statefactory 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.