It might be worth it to list out all the possible options for type here. Just `page` and `post`?