Page 1 of 1

JSDoc {Array<Byte>}

PostPosted: Sat Jun 30, 2012 3:10 am
by kwpsd
Version: 6.0.6 - build 1232

I am attempting to JSDoc a method to send e-mail and have trouble with the 'attachment' parameter:

Code: Select all
/**
  * <stuff>
  *
  * @param {Array<Byte>} attachment File attachment
  *
  * <more stuff>
  *
  */

The parameter is being flagged as a warning of 'Unknown type Byte', however, the JSDoc section of the Wiki shows this example for '@param' et al:

{Array<Byte>} An array containing just bytes


What notation should I be using?

Re: JSDoc {Array<Byte>}

PostPosted: Sat Jun 30, 2012 7:09 am
by ptalbot
How about:
Code: Select all
@param {byte[]} attachment

or if all else fails
Code: Select all
@param attachment

Re: JSDoc {Array<Byte>}

PostPosted: Sat Jun 30, 2012 10:44 am
by jasantana
Try:

@param {Array<byte>}

Byte must be lowercase.

Re: JSDoc {Array<Byte>}

PostPosted: Sat Jun 30, 2012 9:27 pm
by kwpsd
Ah, <Byte> should be <byte>...got it! Thank you, gentlemen.

Servoy...the wiki should be upated, so that others do not fall into the same trap.