Skip to content

extractModals

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/utils/modal-extractor.ts

Extract all modal definitions from both code and template, deduplicating results.

This is the main entry point for modal extraction. It calls both extractModalsFromCode and extractModalsFromTemplate, then merges results by name (code-derived modals take priority for metadata).

Signature

ts
function extractModals(code: string, templateContent: string | undefined, filePath: string, componentName: string, framework: 'angular' | 'vue' | 'react'): ModalDefinition[]

Parameters

NameType
codestring
templateContent`string
filePathstring
componentNamestring
framework`'angular'

Returns: ModalDefinition[]

Was this page helpful?

Download as PDF