Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
TypeDoc [PR-45]
node v4.9.1
version:
2.0.0
endpoint
share
tweet
const TypeDoc = require('type-doc@0.1.16').main;
TypeDoc(` const p /* t:Promise Number */ = new Promise((resolve, reject) => { resolve(2); }); p.then((result) => { const someResult /* t:String */ = result; }); `);
This should be reporting an error of expected type String, actual type Number.
Loading…
no comments
sign in
to comment