@azure/communication-react
Version:
React library for building modern communication user experiences utilizing Azure Communication Services
15 lines • 350 B
TypeScript
/**
* Return intersect type of 2 types
*
* @public
*/
export type Common<A, B> = Pick<A, CommonProperties<A, B>>;
/**
* Return intersect properties of 2 types
*
* @public
*/
export type CommonProperties<A, B> = {
[P in keyof A & keyof B]: A[P] extends B[P] ? P : never;
}[keyof A & keyof B];
//# sourceMappingURL=commonProperties.d.ts.map