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

Function generateHeaders

src/generators/headers.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 generateHeaders = (config: WorkspaceConfiguration) => {
4 const customHeaders = config.get("headers");
5 if (customHeaders) {
6 return customHeaders + "\n";
7 }
8 return [`export const headers: HeadersFunction = () => (`, ` {`, ` // your headers here`, ` }`, `);`].join("\n");
9};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected