MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / createRoot

Function createRoot

source code/ink.ts:27–33  ·  view source on GitHub ↗
(options?: RenderOptions)

Source from the content-addressed store, hash-verified

25}
26
27export async function createRoot(options?: RenderOptions): Promise<Root> {
28 const root = await inkCreateRoot(options)
29 return {
30 ...root,
31 render: node => root.render(withTheme(node)),
32 }
33}
34
35export { color } from './components/design-system/color.js'
36export type { Props as BoxProps } from './components/design-system/ThemedBox.js'

Callers 1

runFunction · 0.70

Calls 2

withThemeFunction · 0.85
renderMethod · 0.45

Tested by

no test coverage detected