You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TypeScript typings for agent.createTask are wrong - the optional parameters for TaskContactDefinition are not optional in the type definitions but the readme says that these should be:
interfaceTaskContactDefinition{/** The endpoint to assign to */readonlyendpoint: Endpoint;/** The linked contact id */readonlypreviousContactId?: string;/** The task name */readonlyname: string;/** The task description */readonlydescription: string;/** The task references */readonlyreferences: ReferenceDictionary;/** The task scheduled time */readonlyscheduledTime: number;/** A random value */readonlyidempotencyToken: string;}
Also the callback is:
interfaceSuccessFailOptions{/** A callback that starts when the operation completes successfully. */readonlysuccess?: SuccessFailCallback;/** A callback that starts when the operation has an error. */readonlyfailure?: SuccessFailCallback<[string]>;}
But success should return a contact ID like {contactId: string}
The text was updated successfully, but these errors were encountered:
The TypeScript typings for
agent.createTask
are wrong - theoptional
parameters forTaskContactDefinition
are not optional in the type definitions but the readme says that these should be:Also the callback is:
But success should return a contact ID like
{contactId: string}
The text was updated successfully, but these errors were encountered: