interface.uts 325 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2 3 4 5 6 7 8 9 10 11
export type SyncOptions = {
    success ?: (res : string) => void
    fail ?: (res : string) => void
    complete ?: (res : string) => void
}
export interface RequestTask {
    url : string
    abort() : RequestTask
    onCallback(callback : (res : string) => void) : void
    sync(options : SyncOptions) : string
}