21 lines
355 B
TypeScript
Raw Normal View History

2016-11-13 15:34:01 +00:00
function find(id: string) {
return document.getElementById(id)
}
function get(url: string, body?: Object): Promise<string> {
return new Promise(function(resolve, reject) {
resolve("")
})
}
function post(url: string, body?: Object): Promise<string> {
return new Promise(function(resolve, reject) {
resolve("")
})
}
export {
find,
get,
post
}