---
title: "LoadOptions: interface in Runtime, TypeShade API reference"
description: "LoadOptions, an interface in Runtime. How rt.load() loads a program. The program runtime that runs compiled programs on WebGPU…"
url: https://typeshade.dev/api/loadoptions/
language: en
---

# `LoadOptions`

Interface in Runtime

How rt.load() loads a program.

`import type { LoadOptions } from 'typeshade/runtime'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
interface LoadOptions {
  readonly console?: boolean;
}
```

## Instance properties

**`console` optional read only `boolean`**

Record the entries’ `console.*` calls. Defaults to the legacy enabled `console` variant (`vite dev`); an optional `variants.console` stays disabled until requested. Either needs no emitter. Without one, the runtime’s `emit` can use retained IR.

## Source

[`src/runtime/runtime.ts`, line 89](https://github.com/typeshade/typeshade/blob/af54ddad5/src/runtime/runtime.ts#L89), at commit af54ddad5
