Kind: Function
Source: atloria-monorepo/libs/parser-core/src/utils/permission-extractor.ts
Extract all permission checks from code and template.
Signature
tsfunction extractPermissions(code: string, templateContent: string | undefined, filePath: string, componentName: string, framework: 'angular' | 'vue' | 'react'): PermissionCheck[]
Parameters
| Name | Type |
|---|---|
code | string |
templateContent | `string |
filePath | string |
componentName | string |
framework | `'angular' |
Returns: PermissionCheck[]
Was this page helpful?