Tighten signature for CallSite.getTypeName()

This commit is contained in:
Howard Mak
2017-12-05 14:54:29 -05:00
parent 75dabcb90f
commit a30bc16f3c
8 changed files with 20 additions and 4 deletions

View File

@@ -2429,6 +2429,10 @@ namespace errors_tests {
let frames: NodeJS.CallSite[] = [];
Error.prepareStackTrace(new Error(), frames);
}
{
let frame: NodeJS.CallSite = null;
let typeName: string = frame.getTypeName();
}
}
///////////////////////////////////////////////////////////