**Problem** Examples are not 100% typesafe after I copy code I get a lot of type errors.  **Solution** Improve type safety **Alternatives** No alternative **Context** Typescript improvements of types in examples.