mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
13 lines
265 B
TypeScript
13 lines
265 B
TypeScript
|
|
import * as nanoajax from 'nanoajax';
|
|
|
|
nanoajax.ajax({
|
|
url: '/some-get-url'
|
|
}, function (code, responseText) {})
|
|
|
|
nanoajax.ajax({
|
|
url: '/some-post-url',
|
|
method: 'POST',
|
|
body: 'post=content&args=yaknow'
|
|
}, function (code, responseText, request) {})
|