Child pages
  • Specification (.spec file)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The function description in the handlers section can be just "function" or a more complex type describing the arguments and return type 

{ "parameters: [{start: 'int'}, {end: 'int'}], returns: 'string'}

 

"functionName": {
        "returns": "string",
        "parameters":[
                                {
                                  "name":"start",
                                  "type":"int"
                                } 

                               { 

                                  "name":"end",
                                  "type":"int"
                                } 
                              ]
},

The  signature description should also be like the complex function type, describing the arguments and return type {parameters: [{start: 'int'}, {end: 'int'}], returns: 'string'}

...