docs(README): add explicit type annotations to documentation
doc(example): add example of using directive