Package-level declarations

Types

Link copied to clipboard
typealias AssetKey = String
Link copied to clipboard
sealed external interface GetAssetAsBlobOptions

Functions

Link copied to clipboard
external fun getAsset(key: AssetKey): ArrayBuffer

This method can be used to retrieve the assets configured to be bundled into the single-executable application at build time. An error is thrown when no matching asset can be found.

external fun getAsset(key: AssetKey, encoding: String): String
Link copied to clipboard
external fun getAssetAsBlob(key: AssetKey, options: GetAssetAsBlobOptions = definedExternally): Blob

Similar to sea.getAsset(), but returns the result in a Blob. An error is thrown when no matching asset can be found.

Link copied to clipboard
external fun getRawAsset(key: AssetKey): Any

This method can be used to retrieve the assets configured to be bundled into the single-executable application at build time. An error is thrown when no matching asset can be found.

Link copied to clipboard
external fun isSea(): Boolean