Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Find TypeScript Definitions #54

Open
loganknecht opened this issue Dec 18, 2020 · 1 comment
Open

Cannot Find TypeScript Definitions #54

loganknecht opened this issue Dec 18, 2020 · 1 comment

Comments

@loganknecht
Copy link

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?

@ljharb
Copy link
Member

ljharb commented Dec 18, 2020

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’)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants