diff options
author | 2019-01-11 21:07:21 +0100 | |
---|---|---|
committer | 2019-01-11 21:07:21 +0100 | |
commit | 0ac2806481852249c6a2d4a032cc2c0324a58ef8 (patch) | |
tree | 03292af10a5a97b824293ff8878d2a5c821d5ed2 /packages/forms/src/typings | |
parent | expose legacy styles (diff) | |
download | ferdium-app-0ac2806481852249c6a2d4a032cc2c0324a58ef8.tar.gz ferdium-app-0ac2806481852249c6a2d4a032cc2c0324a58ef8.tar.zst ferdium-app-0ac2806481852249c6a2d4a032cc2c0324a58ef8.zip |
Add toggle element to @meetfranz/forms
Diffstat (limited to 'packages/forms/src/typings')
-rw-r--r-- | packages/forms/src/typings/generic.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/forms/src/typings/generic.ts b/packages/forms/src/typings/generic.ts index e1e497050..bd3ea364b 100644 --- a/packages/forms/src/typings/generic.ts +++ b/packages/forms/src/typings/generic.ts | |||
@@ -1,11 +1,14 @@ | |||
1 | import { Classes } from 'jss'; | 1 | import { Classes } from 'jss'; |
2 | 2 | ||
3 | export interface IFormField { | 3 | export interface IFormField { |
4 | title?: string; | ||
5 | showLabel?: boolean; | 4 | showLabel?: boolean; |
6 | isError?: boolean; | 5 | label?: string; |
6 | error?: string; | ||
7 | } | 7 | } |
8 | 8 | ||
9 | export interface IWithStyle { | 9 | export interface IWithStyle { |
10 | classes: Classes; | 10 | classes: Classes; |
11 | } | 11 | } |
12 | |||
13 | export type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N; | ||
14 | export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | ||