Variable: Runtime

const Runtime: {
  boot: (rawOptions) => Promise<
     | ServerRuntimeContainer
     | AutoRuntimeContainer
    | RuntimeContainer>;
  clearPersistence: (persistenceKey, options) => Promise<boolean>;
};

Type Declaration

boot

boot: (rawOptions) => Promise<
  | ServerRuntimeContainer
  | AutoRuntimeContainer
| RuntimeContainer>;

Parameters

ParameterType
rawOptionsBootOptions

Returns

Promise< | ServerRuntimeContainer | AutoRuntimeContainer | RuntimeContainer>

clearPersistence

clearPersistence: (persistenceKey, options) => Promise<boolean>;

Parameters

ParameterType
persistenceKeystring
options{ backend?: RuntimeBackendKind; brokerToken?: string; brokerUrl?: string | URL; grant?: ServerRuntimeGrantProvider; projectId?: string; runtimeConfigUrl?: string | false | URL; }
options.backend?RuntimeBackendKind
options.brokerToken?string
options.brokerUrl?string | URL
options.grant?ServerRuntimeGrantProvider
options.projectId?string
options.runtimeConfigUrl?string | false | URL

Returns

Promise<boolean>