Typed API implementation.