PreinitOptions
Options of preinit.
Options of preinit.
Import#
ts
import type { PreinitOptions } from "@shadow-js/web";
Signature#
ts
interface PreinitOptions extends CrossOriginOptions {
/**
* What to load: `"style"` inserts a stylesheet, `"script"` inserts an async script. Required, as
* the two produce different elements.
*/
readonly as: "style" | "script";
}
Members#
| Name | Type | Description |
|---|---|---|
as |
readonly as: "style" | "script" |
What to load: "style" inserts a stylesheet, "script" inserts an async script. Required, as the two produce different elements. |