Last active
February 28, 2019 01:06
-
-
Save camilogiraldo/4656e2489847f74501f1466c3303aa81 to your computer and use it in GitHub Desktop.
app/shared/interface/form-data.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create form-data.ts under app/shared/interface/form-data.ts | |
export interface FormData { | |
controlName: string; | |
controlType: string; | |
valueType?: string; | |
currentValue?: string; | |
placeholder?: string; | |
options?: Array<{ | |
optionName: string; | |
value: string; | |
}>; | |
validators?: { | |
required?: boolean; | |
minlength?: number; | |
maxlength?: number; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment