Skip to content
Permalink
Browse files

feat(types): add deprecation jsdoc for deprecated methods

  • Loading branch information
copperwall authored and gr2m committed Oct 5, 2019
1 parent 58443cd commit f7c31af9aa10c54bdb679ba53eaf7061bac1ef94
Showing with 8 additions and 6 deletions.
  1. +8 −6 scripts/update-endpoints/typescript.js
@@ -120,11 +120,6 @@ async function generateTypes(languageName, templateFile, outputFile) {
}

const newParamName = entry.params[name].alias;

if (name === "in_reply_to") {
debugger;
}

const newParam = Object.assign(
{
type: entry.params[name].type
@@ -214,10 +209,17 @@ async function generateTypes(languageName, templateFile, outputFile) {
});
});

const description = [
entry.description,
entry.deprecated && `@deprecated ${entry.deprecated}`
]
.filter(Boolean)
.join("\n");

return methods.concat({
method: methodName,
responseType,
jsdoc: stringToJsdocComment(entry.description),
jsdoc: stringToJsdocComment(description),
paramTypes
});
},

0 comments on commit f7c31af

Please sign in to comment.
You can’t perform that action at this time.