feat: compatible brower behavior

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-05-30 10:43:33 +08:00
parent c9ca4ffd39
commit c45bbb9821
10 changed files with 94 additions and 96 deletions

View File

@ -19,9 +19,9 @@ function convertJson2TypeDefiend(infile: string, outDir: string) {
let isInterface = classModifier.includes('interface')
let safeInterface = [];
for (const ifs of obj.interfaces) {
if (!ifs.qualifiedName.startsWith('java')) {
safeInterface.push(ifs)
}
// if (!ifs.qualifiedName.startsWith('java')) {
safeInterface.push(ifs)
// }
}
if (isInterface) {
if (safeInterface.length > 0) {

View File

@ -16,6 +16,7 @@ declare global {
function from(javaObj: any): any[];
function to(array: any[]): any;
function extend(...parentTypes: any[]);
function synchronized(func: () => void, lock: any);
//@ts-ignore
// function super(type: any);
}