Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 515 Bytes

iservice-worker-builder.md

File metadata and controls

27 lines (18 loc) · 515 Bytes

Scaffold

IServiceWorkerBuilder

Defines an service worker initialization utility.

Methods

// Indicates which Startup class will build the services and fetch pipeline. This
// method must be called.
useStartup<T extends IStartup>(startupType: StartupFactory<T>): IServiceWorkerBuilder;

// Builds the service worker. This is intended to be the last step of the build process.
build(): void;

Examples

Scaffold
    .createBuilder("1.0.0")
    .useStartup(Startup)
    .build();