( fn: Fn, )
| 168 | * Note that this by design hides the implementation details of the integration, as they are considered internal. |
| 169 | */ |
| 170 | export function defineIntegration<Fn extends IntegrationFn>( |
| 171 | fn: Fn, |
| 172 | ): (...args: Parameters<Fn>) => Integration & { name: ReturnType<Fn>['name'] } { |
| 173 | return fn; |
| 174 | } |
| 175 | |
| 176 | // When extending an integration, we allow other properties to be passed-through |
| 177 | type IntegrationWithOtherProperties = Record<string, unknown> & Integration; |
no outgoing calls
no test coverage detected