@openlens/application
TypeScript icon, indicating that this package has built-in type declarations

6.5.0 • Public • Published

@openlens/application

This package contains stuff related to creating Lens-applications.

Usage

$ npm install @openlens/application-for-electron-main
import { applicationFeature, startApplicationInjectionToken } from "@openlens/application";
import { registerFeature } from "@openlens/feature-core";
import { createContainer } from "@ogre-tools/injectable";

const di = createContainer("some-container");

registerFeature(di, applicationFeature);

const startApplication = di.inject(startApplicationInjectionToken);

startApplication();

Features

Start application

startApplicationInjectionToken

Starts the application and calls timeslots in specified order. Check for timeslots for more info.

Extendability

Timeslots

  1. beforeApplicationIsLoadingInjectionToken
  2. onLoadOfApplicationInjectionToken
  3. afterApplicationIsLoadedInjectionToken

Readme

Keywords

none

Package Sidebar

Install

npm i @openlens/application

Weekly Downloads

1

Version

6.5.0

License

MIT

Unpacked Size

7.02 kB

Total Files

9

Last publish

Collaborators

  • fbaldo