mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 14:29:06 +08:00
10 lines
200 B
TypeScript
10 lines
200 B
TypeScript
import * as request from 'superagent';
|
|
import * as plugin from 'superagent-prefix';
|
|
|
|
request
|
|
.get('/some-url')
|
|
.use(plugin('/static'))
|
|
.end((err, res) => {
|
|
// Do something
|
|
});
|