Captain is currently in ALPHA. We are happy to get your feedback
Core API
Helpers Utils Core

Module: helpers/utils/core

Table of contents

Type Aliases

Variables

Functions

Type Aliases

AppId

Ƭ AppId: typeof coreApps[number]

Defined in

src/electron/helpers/utils/core.ts:10 (opens in a new tab)


CoreView

Ƭ CoreView: typeof coreViews[number]

Defined in

src/electron/helpers/utils/core.ts:18 (opens in a new tab)

Variables

coreApps

Const coreApps: readonly ["live-painting", "story", "explorer", "text-to-image", "preview", "assistant"]

Defined in

src/electron/helpers/utils/core.ts:1 (opens in a new tab)


coreViews

Const coreViews: readonly ["dashboard", "settings", "downloads", "marketplace"]

Defined in

src/electron/helpers/utils/core.ts:16 (opens in a new tab)

Functions

isCoreApp

isCoreApp(id): id is "live-painting" | "assistant" | "story" | "text-to-image" | "preview" | "explorer"

Parameters

NameType
idstring

Returns

id is "live-painting" | "assistant" | "story" | "text-to-image" | "preview" | "explorer"

Defined in

src/electron/helpers/utils/core.ts:12 (opens in a new tab)


isCoreView

isCoreView(id): id is "downloads" | "dashboard" | "settings" | "marketplace"

Parameters

NameType
idstring

Returns

id is "downloads" | "dashboard" | "settings" | "marketplace"

Defined in

src/electron/helpers/utils/core.ts:20 (opens in a new tab)