update the type signature in API docs