try to check type declaration works for the client