Skip to content

extractFormsFromCode

reference
1 min readUpdated

Kind: Function

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

Extract forms from TypeScript/JavaScript code (FormGroup, Yup, RHF, Vuelidate).

Signature

ts
function extractFormsFromCode(code: string, filePath: string, componentName: string): FormDefinition[]

Parameters

NameType
codestring
filePathstring
componentNamestring

Returns: FormDefinition[]

Was this page helpful?

Download as PDF