mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
17 lines
371 B
JavaScript
17 lines
371 B
JavaScript
const doms = new Set([
|
|
"Headers",
|
|
"Request",
|
|
"Response",
|
|
"URL",
|
|
"URLSearchParams",
|
|
])
|
|
|
|
module.exports.load = function load(app) {
|
|
// Rewrite Web Standard API references to MDN links
|
|
app.renderer.addUnknownSymbolResolver("typescript", (name) => {
|
|
if (doms.has(name)) {
|
|
return `https://developer.mozilla.org/en-US/docs/Web/API/${name}`
|
|
}
|
|
})
|
|
}
|