diff options
author | 2021-10-15 15:25:41 +0530 | |
---|---|---|
committer | 2021-10-15 15:25:41 +0530 | |
commit | 0ad7444fb1dc2cdb82830df4ef241d75a6bfd82d (patch) | |
tree | 5a994fb8e0620aa5d2542ddd9c8561ef9861a9b5 /src/components/ui/typings | |
parent | chore: refresh lock file to fix vulnerabilities (#2075) (diff) | |
download | ferdium-app-0ad7444fb1dc2cdb82830df4ef241d75a6bfd82d.tar.gz ferdium-app-0ad7444fb1dc2cdb82830df4ef241d75a6bfd82d.tar.zst ferdium-app-0ad7444fb1dc2cdb82830df4ef241d75a6bfd82d.zip |
chore: move 'packages/ui' into 'src' (no longer an injected package) (#2077)
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>>; | ||