The jsdoc example mentions `remotes.createType` but the function is called `remotes.convert`.

The name `create` is usually used for functions that return a new object, `convert` functions return a different representation of the arguments.

IMO `RemoteObjects.defineConverter` or `RemoteObjects.defineType` are more appropriate names.