@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 06:00 UTC

next
ts 8 lines 277 Bytes
Raw
1 export const omit = <T extends object, K extends keyof T>(obj: T, ...keys: K[]): Omit<T, K> =>
2 Object.keys(obj).reduce((acc: Record<string, unknown>, key) => {
3 if (!keys.includes(key as K)) {
4 acc[key] = obj[key as K];
5 }
6
7 return acc;
8 }, {}) as Omit<T, K>;