Clarify type of getPosts