@zendesk/react-measure-timing-hooks
Version:
react hooks for measuring time to interactive and time to render of components
15 lines (13 loc) • 434 B
text/typescript
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
/**
* Same as Omit, but does not merge types with unions, rather omits each union type individually
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type DistributiveOmit<T, K extends keyof any> = T extends any
? Omit<T, K>
: never