MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / raw

Function raw

packages/plugins/src/index.ts:305–311  ·  view source on GitHub ↗
(content: string, injectedProps?: Record<string, string>)

Source from the content-addressed store, hash-verified

303 * This is fully compatible with the existing DevComponent type.
304 */
305export function raw(content: string, injectedProps?: Record<string, string>): DevComponent {
306 return {
307 name: RAW_TAG_NAME,
308 props: { content, injectedProps },
309 children: []
310 }
311}
312
313/**
314 * Helper to define a TemPad Dev plugin with full type support.

Callers 5

index.test.tsFile · 0.90
index.test.tsFile · 0.90
renderShellTreeFunction · 0.90
renderNodeFunction · 0.90
tsdown.config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected