node-util icon indicating copy to clipboard operation
node-util copied to clipboard

Cannot Find TypeScript Definitions

Open loganknecht opened this issue 4 years ago • 1 comments

Hello!

Apologize for being a dingus on this.

I've tried

yarn add --registry=https://registry.npmjs.org @types/util

But this is what I get

dev ±✚  ⬡ v12.17.0  yarn add --registry=https://registry.npmjs.org @types/util
yarn add v1.22.5
[1/4] 🔍  Resolving packages...
error An unexpected error occurred: "https://registry.npmjs.org/@types%2futil: Not found".
info If you think this is a bug, please open a bug report with the information provided in "/Users/lknecht/Repositories/palantir-test-data-helpers/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Can you provide guidance on how to add type definitions for this library?

loganknecht avatar Dec 18 '20 01:12 loganknecht

The implication is that none exist.

however, if you use the node types, then the types for this package would presumably be similar to typeof require(‘util’)

ljharb avatar Dec 18 '20 02:12 ljharb