Fixed types of `$client` for clients created by `drizzle` function from credentials (#4742)