diff options
Diffstat (limited to 'src/components/ui/typings')
-rw-r--r-- | src/components/ui/typings/generic.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/ui/typings/generic.ts b/src/components/ui/typings/generic.ts new file mode 100644 index 000000000..ddce3f7c7 --- /dev/null +++ b/src/components/ui/typings/generic.ts | |||
@@ -0,0 +1,11 @@ | |||
1 | import { Classes } from 'jss'; | ||
2 | |||
3 | import { Theme } from '@meetfranz/theme'; | ||
4 | |||
5 | export interface IWithStyle { | ||
6 | classes: Classes; | ||
7 | theme: Theme; | ||
8 | } | ||
9 | |||
10 | export type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N; | ||
11 | export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | ||