MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / generateHandler

Function generateHandler

src/generators/handler.ts:3–9  ·  view source on GitHub ↗
(config: WorkspaceConfiguration)

Source from the content-addressed store, hash-verified

1import type { WorkspaceConfiguration } from "vscode";
2
3export const generateHandler = (config: WorkspaceConfiguration) => {
4 const customHandle = config.get("handle");
5 if (customHandle) {
6 return `${customHandle}\n`;
7 }
8 return ["export const handle = () => ({", " // your handler here", "});"].join("\n");
9};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected