In the reference docs it says that the DeltaDocumentSnapshot data method returns a DeltaDocumentSnapshot. The text is correct I guess, just not the return type. According to the source code it is any.
See src/providers/firestore.ts#L79
I arrived here from posting this issue earlier firebase/firebase-js-sdk/issues/330