I have installed rangy in a Angular2+ application.
It appears that the function "rangy.resoreSelection" is not found.
I've also installed the types: https://www.npmjs.com/package/@types/rangy
https://github.com/timdown/rangy/wiki/Selection-Save-Restore-Module
import * as rangy from 'rangy';