feat: compatible brower behavior
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user