Skip to main content
getAsset - node__sea.d.ts - Node documentation
function getAsset

Usage in Deno

```typescript import { getAsset } from "node:node__sea.d.ts"; ```
getAsset(key: AssetKey): ArrayBuffer
> [!WARNING] Deno compatibility > This symbol is not supported. 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.

Parameters

key: AssetKey

Return Type

ArrayBuffer
getAsset(
key: AssetKey,
encoding: string,
): string
> [!WARNING] Deno compatibility > This symbol is not supported.

Parameters

key: AssetKey
encoding: string

Return Type

string