var typescript = require("../typescript");
module.exports = function (data, isAsync, isYield) {
    if (isYield || isAsync) {
        data = `${isAsync ? "async " : ""}function${isYield ? "*" : ""}(){${data}}`;
    }
    data = typescript.transpile(data, { noEmitHelpers: true });
    if (isYield || isAsync) {
        data = data.replace(/^\s*function\s*\(\s*\)\s*\{\s*([\s\S]*?)\s*\}\s*$/, "$1");
    }
    return data;
}
@@ -206,24 +206,190 @@
 a%7D%7D%60;%0A    %7D%0A
+    data = data.replace(/(%5Csextends%5Cs+)Array(%5Cs%7C%7C%5C%7B)/g, function (_, ex, sq) %7B%0A        return %60$%7Bex%7D(A=%3E(A.prototype=Array.prototype,A))(function()%7B%7D)$%7Bsq%7D%60;%0A    %7D);%0A
     data = t

解决typescript转换的代码无法extends Array的问题