fix: linting errors
This commit is contained in:
parent
d00c7bc5d5
commit
a3da67c90c
3 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import { FormControl } from '../core/form-control';
|
||||
import type { FormControl } from '../core/form-control';
|
||||
|
||||
export interface Props {
|
||||
control: FormControl;
|
||||
|
|
|
@ -26,7 +26,7 @@ type FormControlType =
|
|||
| 'week';
|
||||
|
||||
export class FormControl {
|
||||
name: string;
|
||||
name: string = '';
|
||||
type?: FormControlType = 'text';
|
||||
value?: string | number | null | string[];
|
||||
label?: string;
|
||||
|
@ -37,17 +37,17 @@ export class FormControl {
|
|||
* TODO: Create classes for each control type
|
||||
*/
|
||||
|
||||
export class Checkbox extends FormControl {
|
||||
export interface Checkbox extends FormControl {
|
||||
type: 'checkbox';
|
||||
checked: boolean;
|
||||
}
|
||||
|
||||
export class Radio extends FormControl {
|
||||
export interface Radio extends FormControl {
|
||||
type: 'checkbox';
|
||||
checked: boolean;
|
||||
}
|
||||
|
||||
export class Submit extends FormControl {
|
||||
export interface Submit extends FormControl {
|
||||
type: 'submit';
|
||||
callBack: () => void;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "astro-reactive-form",
|
||||
"description": "The Reactive Form component for Astro 🔥",
|
||||
"version": "0.1.3",
|
||||
"version": "0.1.4",
|
||||
"repository": "https://github.com/ayoayco/astro-reactive-library",
|
||||
"homepage": "https://github.com/ayoayco/astro-reactive-library#readme",
|
||||
"author": {
|
||||
|
|
Loading…
Reference in a new issue