Skip to content

extractPermissions

reference
1 min readUpdated

Kind: Function

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

Extract all permission checks from code and template.

Signature

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

Parameters

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

Returns: PermissionCheck[]

Was this page helpful?

Download as PDF