gen_server compatible typing

Create type for client, compatible with gen_server:call type spec.