aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ui/src/typings/generic.ts
blob: a2b9c041c652b5fab2bc1afec390b6808ae5dca3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { Classes } from 'jss';

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

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