npm i -g https://github.com/brandolori/xrm-typegen.git
Launch these commands your "WebResource" main folder
xrm-typegen --init
generate all the files needed for the type system.
xrm-typegen <entity-id>
generate the typings for the specified entity in the current folder.
xrm-typegen
without any arguments to update all the synchronized entities definitions.