How can I initilize a new user wallet using TypeScript

Initialize a new user wallet using Typescript?

I tried
let walletinitilization: nkruntime.RtAfterHookFunction<nkruntime.AuthenticateDeviceRequest> =
function (ctx: nkruntime.Context, logger: nkruntime.Logger, nk: nkruntime.Nakama, data: nkruntime.AuthenticateDeviceRequest) {
var userId = ctx.userId;
logger.info(“For the wallet adding : %s”, userId);
}

error in this line : <nkruntime.AuthenticateDeviceRequest>

@Looper please be mindful in providing more information on the issue when posting, it is hard to get help from the community with so little context on the issue.

I can’t tell what your problem might be, but you can see an example on how to populate some user information after creation here: unity-sampleproject/main.ts at master · heroiclabs/unity-sampleproject · GitHub