aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/typings/generic.ts
blob: 65b996d5978e591b2e823eccca81a5d4804b5dc6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Classes } from 'jss';

import { Theme } from '../../../themes';

export interface IFormField {
  showLabel?: boolean;
  label?: string;
  error?: string;
  required?: boolean;
  noMargin?: boolean;
}

export interface IWithStyle {
  classes: Classes;
  theme: Theme;
}

export type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;