mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-24 09:42:43 +00:00
11 lines
233 B
TypeScript
11 lines
233 B
TypeScript
import express = require('express');
|
|
import setLink = require('set-link');
|
|
|
|
const app = express();
|
|
|
|
app.use(setLink);
|
|
|
|
function handler(req: express.Request, res: express.Response) {
|
|
res.setLink('http://example.com/', 'self');
|
|
}
|