Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/src/server/types.ts>PluginRenderScripts

The next-gen web framework.
Extremely Popular
Go to Latest
interface PluginRenderScripts
import { type PluginRenderScripts } from "https://deno.land/x/fresh@1.4.0/src/server/types.ts";

Properties

entrypoint: string

The "key" of the entrypoint (as specified in Plugin.entrypoints) for the script that should be loaded. The script must be an ES module that exports a default function.

The default function is invoked with the state argument specified below.

state: unknown

The state argument that is passed to the default export invocation of the entrypoint's default export. The state must be JSON-serializable.