Describe the bug
inngest.send() SendEventPayload typing does not include a "user" property per https://www.inngest.com/docs/reference/typescript/v4/events/send
To Reproduce
Steps to reproduce the behavior:
- Create a function with
const inngest = new Inngest({ id: 'example' });
const result = await inngest.send({
name: "eventName",
data,
user: {
external_id: "sub",
email: "email",
name: "name",
},
});
Expected behavior
there are no TS errors for "user".
System info (please complete the following information):
- npm package Version 4.5.1, sil applies to latest
- Framework: Next.js
- Platform local development
Additional context
Here is the type tree for reference
export interface MinimalEventPayload<TData = any> {
id?: string;
data?: TData;
v?: string;
meta?: EventMeta;
}
export interface EventPayload<TData = any> extends MinimalEventPayload<TData> {
name: string;
ts?: number;
}
export type SendEventPayload = SingleOrArray<PartialK<Omit<EventPayload, "v">, "ts">>;
Describe the bug
inngest.send() SendEventPayload typing does not include a "user" property per https://www.inngest.com/docs/reference/typescript/v4/events/send
To Reproduce
Steps to reproduce the behavior:
Expected behavior
there are no TS errors for "user".
System info (please complete the following information):
Additional context
Here is the type tree for reference