/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cli/tsc/dts/node/constants.d.cts
21 строка
816 B
David Sherret
feat: include `@types/node` type declarations out of the box (#31502)
09 дек 2025, 13:58
Не верифицирован
09 дек 2025, 13:58
a49fdb5
Код
Авторство
О чём код?
/** * @deprecated The `node:constants` module is deprecated. When requiring access to constants * relevant to specific Node.js builtin modules, developers should instead refer * to the `constants` property exposed by the relevant module. For instance, * `require('node:fs').constants` and `require('node:os').constants`. */ declare module "constants" { const constants: & typeof import("node:os").constants.dlopen & typeof import("node:os").constants.errno & typeof import("node:os").constants.priority & typeof import("node:os").constants.signals & typeof import("node:fs").constants & typeof import("node:crypto").constants; export = constants; } declare module "node:constants" { import constants = require("constants"); export = constants; }