Skip to content

Extract runtime APIs from AppHost #2

@felixb-wix

Description

@felixb-wix

AppHost contains many utility/administration functions. These functions can be extracted into APIs. They will be treated as any other API, and stop being special cases.

Below is proposed API names and contents.

AppHostDebugAPI

  • getAllSlotKeys(): AnySlotKey[]
  • getAllFeatures(): FeatureInfo[]

AppHostAdminAPI

  • isFeatureInstalled(name: string): boolean
  • isLazyFeature(name: string): boolean
  • installFeatures(features: AnyFeature[]): void
  • uninstallFeatures(names: string[]): void

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogThis issue belongs to backlogenhancementNew feature or requestpublic-apiThis issue shapes the public API of the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions