ignore empty funtion for tw helper

This commit is contained in:
Brendan Allan 2023-01-22 16:34:03 +08:00
parent f0da8b037f
commit 64bf19abc4

View file

@ -17,7 +17,8 @@ type TailwindFactory = {
<T>(c: T): ClassnameFactory<T>;
};
export const tw = new Proxy({} as unknown as TailwindFactory, {
// eslint-ignore-next-line
export const tw = new Proxy((() => {}) as unknown as TailwindFactory, {
get: (_, property: string) => twFactory(property),
apply: (_, __, [el]: [React.ReactElement]) => twFactory(el)
});