Browse documentation

SwRuntimeEnvironment

Type. Environment objects used by the service worker runtime.

Table of contents

Category

Type

Type import

ts
import type { SwRuntimeEnvironment } from "valyrian.js/sw";

Public signature

ts
type SwRuntimeEnvironment = { isNodeJs?: boolean; navigator?: Navigator | null; window?: Window | null; };

Type usage

SwRuntimeEnvironment provides the optional runtime objects used by CreateSwRuntimeOptions.