Update wpsresource.ts

Reviewed until line #4547