The reason is because the remove method does not return a document of type T. I think the first arg it returns is the number of records removed, so this could be QueryOne<number>. I wasn't 100% certain on what it returned, and the existing callback definition only specified the error, so I just went with any for now.