api / variables / Runtime
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
| Parameter | Type |
|---|---|
rawOptions | BootOptions |
Returns
Promise<
| ServerRuntimeContainer
| AutoRuntimeContainer
| RuntimeContainer>
clearPersistence
clearPersistence: (persistenceKey, options) => Promise<boolean>;
Parameters
| Parameter | Type |
|---|---|
persistenceKey | string |
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>