JSDoc Function Prototype

We have many instances where we expand the functionality of standard JavaScript class types…for example:

    // Replicate a string 'n' number of times

    String.prototype.replicate = function( n )
    { 
        return new Array( isNaN( n ) ? 1 : n++ ).join( this ) 
    }

All prototypes generate a similar warning:

The property replicate is undefined for the javascript type String.

What is the proper way to annotate this using JSDocs to get rid of the warnings?

Anyone? Servoy engineers (Paul, Johan, Joas, et al)?

I tried various combinations of the Servoy JSDoc tags to no avail. I need help with this!

no this doesn’t work in the the editor. It works fine at runtime but the editor doesn’t know about prototyping, we have no support yet where you could register prototypes so that we know you enhanced the standard objects

Thanks for the explanation, Johan. Do I need to file a feature request for this, or is it already in the planning? If the latter, what is the expected release date?

don’t know if there is a specific feature request for that already, i know we talked about it
When it is released is not yet known, because it is not planned at the moment, also it is part of a 3th party lib we are using, not directly servoy’s own code.

Request created: SVY-1949