MCPcopy
hub / github.com/nuxt-modules/tailwindcss / getTWConfig

Function getTWConfig

src/expose.ts:13–16  ·  view source on GitHub ↗
(
    objPath: string[] = [],
    twConfig = twCtx.use().config,
  )

Source from the content-addressed store, hash-verified

11 const templates: ResolvedNuxtTemplate<any>[] = []
12
13 const getTWConfig = (
14 objPath: string[] = [],
15 twConfig = twCtx.use().config,
16 ) => objPath.reduce((prev, curr) => prev?.[curr], twConfig as Record<string, any>)
17
18 const populateMap = (obj: any = twCtx.use().config, path: string[] = [], level = 1) => {
19 Object.entries(obj).forEach(([key, value = {} as any]) => {

Callers 2

populateMapFunction · 0.85
createExposeTemplatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected