We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm currently trying to create a Destination Middleware Function outlined in this guide: https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/middleware/
The current @segment/analytics-next library supports importing the general MiddlewareFunction type but does not support DestinationMiddlewareFunction.
MiddlewareFunction
DestinationMiddlewareFunction
Here's how I want to use the type:
import type { DestinationMiddlewareFunction } from '@segment/analytics-next'; export function destinationMiddlewareFactory(): DestinationMiddlewareFunction { return function destinationMiddlware({payload, integration, next}) { ... next(payload) } }
I'm currently using "@segment/analytics-next": "^1.53.3".
Here is the type in the sourcecode:
analytics-next/packages/browser/src/plugins/middleware/index.ts
Line 23 in 9ba0dc6
The text was updated successfully, but these errors were encountered:
Hey @antgonzales
We would accept a PR for this if you want to fast track it.
Sorry, something went wrong.
No branches or pull requests
I'm currently trying to create a Destination Middleware Function outlined in this guide:
https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/middleware/
The current @segment/analytics-next library supports importing the general
MiddlewareFunction
type but does not supportDestinationMiddlewareFunction
.Here's how I want to use the type:
I'm currently using "@segment/analytics-next": "^1.53.3".
Here is the type in the sourcecode:
analytics-next/packages/browser/src/plugins/middleware/index.ts
Line 23 in 9ba0dc6
The text was updated successfully, but these errors were encountered: