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