Skip to content

detectApprovalStates

reference
1 min readUpdated

Kind: Function

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

Detect approval-related states

Finds state references containing "Approval" in their name:

  • AwaitingApproval, RejectedApproval, etc.

Signature

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

Parameters

NameType
codestring

Returns: string[]

Was this page helpful?

Download as PDF