simplify tools imports

This commit is contained in:
Gavin McDonald
2025-07-04 14:18:38 -04:00
parent c6e316a1f8
commit b4b0c853f1
14 changed files with 29 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
export default function omit<T extends Record<string, any>>(
export const omit = <T extends Record<string, any>>(
obj: T,
propToRemove: keyof T,
): Omit<T, typeof propToRemove> {
): Omit<T, typeof propToRemove> => {
const { [propToRemove]: _, ...rest } = obj;
return rest;
}
};