fix(optional): add Optional annotation to public api