How do I set `user_properties` on identify calls with ampli?
This page here say that the ampli will generate an identify method with an overload that looks like:
ampli.identify('user_id', {/* user props */}, {/* amplitude options */ })<br />
but that isn’t what I see with `@amplitude/ampli/1.31.0 darwin-arm64 node-v18.14.1` / `@amplitude/analytics-browser@1.9.1`
/**<br /> * Identify a user and set user properties.<br /> *<br /> * @param userId The user's id.<br /> * @param options Optional event options.<br /> */<br /> identify(<br /> userId: string | undefined,<br /> options?: EventOptions,<br /> ): PromiseResult<Result> {<br /> if (!this.isInitializedAndEnabled()) {<br /> return getVoidPromiseResult();<br /> }<br /><br /> if (userId) {<br /> options = {...options, user_id: userId};<br /> }<br /><br /> const amplitudeIdentify = new amplitude.Identify();<br /> return this.amplitude!.identify(<br /> amplitudeIdentify,<br /> options,<br /> );<br /> }<br />
type `EventOptions` looks promising, especially the `.extra` field -- but when passing values into that field, do not see them in the user_properties event of the outgoing identify requests.
I can and will drop down to the untyped SDK, but how am I supposed to do this with the ampli wrapper?