UNPKG

@copilotkit/shared

Version:

<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />

7 lines (5 loc) 179 B
type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>; type RequiredBy<T, K extends keyof T> = T & { [P in K]-?: T[P]; }; export { PartialBy, RequiredBy };