aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/typings
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2021-10-15 15:25:41 +0530
committerLibravatar GitHub <noreply@github.com>2021-10-15 15:25:41 +0530
commit0ad7444fb1dc2cdb82830df4ef241d75a6bfd82d (patch)
tree5a994fb8e0620aa5d2542ddd9c8561ef9861a9b5 /src/components/ui/typings
parentchore: refresh lock file to fix vulnerabilities (#2075) (diff)
downloadferdium-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.ts11
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 @@
1import { Classes } from 'jss';
2
3import { Theme } from '@meetfranz/theme';
4
5export interface IWithStyle {
6 classes: Classes;
7 theme: Theme;
8}
9
10export type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
11export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;