feat: optimize types ref

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-03-01 20:28:16 +08:00
parent c10247e241
commit b3539d419e
22 changed files with 50 additions and 75 deletions

View File

@ -27,8 +27,7 @@
"typescript": "^3.8.3"
},
"dependencies": {
"@ms/nashorn": "^0.3.0",
"@ms/ployfill": "^0.3.0"
"@ms/nashorn": "^0.3.0"
},
"gitHead": "562e2d00175c9d3a99c8b672aa07e6d92706a027"
}

View File

@ -1,5 +1,3 @@
import '@ms/api'
const URL = Java.type('java.net.URL')
const Paths = Java.type('java.nio.file.Paths');
const Files = Java.type('java.nio.file.Files');
@ -37,7 +35,9 @@ function request(config: RequestConfig) {
}
function download(url: string, target: string) {
console.debug(`Start Download file ${target} from ${url}....`)
Files.copy(new URL(url).openStream(), Paths.get(target), StandardCopyOption.REPLACE_EXISTING);
console.debug(`File ${target} Download Complate...`)
}
function _proxy(method: Method) {

View File

@ -1,4 +1,3 @@
import '@ms/core'
/**
* 反射工具类
* Created by MiaoWoo on 2017/2/9 0009.