Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8132925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:27:51+00:00 2026-06-06T09:27:51+00:00

EBay’s VJET and Google’s Closure Compiler both use type annotations in Javascript comments. Why

  • 0

EBay’s VJET and Google’s Closure Compiler both use type annotations in Javascript comments.

Why have they chosen incompatible syntaxes?

VJET

function add(a, b) {  //< Number add(Number, Number)
    return a + b ;
}

Google Closure

/**
 * Queries a Baz for items.
 * @param {number} groupNum Subgroup id to query.
 * @param {string|number|null} term An itemName,
 *     or itemId, or null to search everything.
 */
goog.Baz.prototype.query = function(groupNum, term) {
  ...
};

Is there a way of automatically turning VJET type annotations into Google Closure type annotations?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:27:52+00:00Added an answer on June 6, 2026 at 9:27 am

    There is not an automated way to tranlate vjetdocs into jsdocs but here is a manual translation for query api. First I will translate from closure’s jsdoc to vjetdoc and then back to show you differences.

    /**
     * Queries a Baz for items.
     * @param {number} groupNum Subgroup id to query.
     * @param {string|number|null} term An itemName,
     *     or itemId, or null to search everything.
     */
    

    groupNum in VJET doc is first first position and type would be Number (not number) vjet uses the case sensitive EcmaScript standard type name.

    itemName is VJET doc would be a mixed type which could be Number or String. With VJETDoc currently there is no default type named Null. If there was a Null data type it would be upper case. I believe this should be added to VJET, but null can be passed in and VJET will not complain with the declarations below.

    You can write it in vjetdoc with or without names of function and params (if you don’t want to repeat yourself… position takes over.

    // shortest form
    function query(groupNum, itemName) {  //< void (Number, {String|Number}?)
    
    }
    //
    // longer form - on same line as declaration
    function query(groupNum, itemName) {  //< void query(Number groupNum, {String|Number}? itemName)
    
    }
    
    // longer form mixed with jsdocs
    
    /**> void query(Number groupNum, {String|Number}? itemName);
     * 
     * Queries a Baz for items.
     * @param {number} groupNum Subgroup id to query.
     * @param {string|number|null} term An itemName,
     *     or itemId, or null to search everything.
    */
    function query(groupNum, itemName) {  
    
    }
    
    
    query(10,"test");
    query(30,20);
    query(20,null);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

You know the select options like on ebay where they have 'best match', 'time
I have modified a slider script to mimic ebay's slider on home page. I
if I use Firefox and access http://svcs.ebay.com/services/search/FindingService/v1 I get some sort of XML in
I tried air for a few applications such as tweetdeck, ebay, however they are
I have done up a page for eBay, I have tested it in Explorer,
I have been working with the Ebay api for a project and have found
I have just started with the ebay Finding API and Feedback API and I
I have made a simple HTML for my ebay template and I wanted to
I understand concepts of JSON ok, but after starting to use ebay's api, I
Using PHP5, how can I use the eBay API to set all my 2000+

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.