mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-16 04:37:03 +00: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
|
|
});
|