fix: linting errors

This commit is contained in:
Ayo 2022-10-01 17:15:00 +02:00
parent d00c7bc5d5
commit a3da67c90c
3 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
---
import { FormControl } from '../core/form-control';
import type { FormControl } from '../core/form-control';
export interface Props {
control: FormControl;

View file

@ -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;
}

View file

@ -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": {