INNER CODE UNIT · TypeScript

ALL_SPACE_IDS

ben-rogerson/twin.macro · src/suggestions/index.ts:20

const ALL_SPACE_IDS = /{{SPACE}}/g

const OPTION_DEFAULTS = {
  CustomError: Error,
  tailwindContext: undefined,
  tailwindConfig: undefined,
  hasLogColors: true,
  suggestionNumber: 5,
}

function getVariantSuggestions(
  variants: string[],
  className: string,
  context: ClassErrorContext
): string | undefined {
  const coreContext = createCoreContext({
    tailwindConfig: context?.tailwindConfig,
    CustomError: MacroError as typeof Error,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…