Fix docs to handle typescript generation issues