Skip to content

detectModalTriggers

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/utils/semantic-detector.ts

Detect modal/dialog trigger methods

Finds methods that open modals/dialogs based on:

  • Method names ending with "Prepare"
  • Calls to openPopup, showDialog, openModal

Signature

ts
function detectModalTriggers(code: string): string[]

Parameters

NameType
codestring

Returns: string[]

Was this page helpful?

Download as PDF