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

TypeScript noImplicitAny Errors #111

Open
Kathund opened this issue Oct 6, 2024 · 0 comments
Open

TypeScript noImplicitAny Errors #111

Kathund opened this issue Oct 6, 2024 · 0 comments

Comments

@Kathund
Copy link

Kathund commented Oct 6, 2024

When using typescript and having noImplicitAny set to true in your tsconfig.json you will get the following erros

Errors
node_modules/.pnpm/[email protected]/node_modules/prismarine-nbt/typings/index.d.ts:61:19 - error TS7010: 'addTypesToCompiler', which lacks return-type annotation, implicitly has an 'any' return type.

61   export function addTypesToCompiler(type: NBTFormat, compiler)
                     ~~~~~~~~~~~~~~~~~~

node_modules/.pnpm/[email protected]/node_modules/prismarine-nbt/typings/index.d.ts:61:55 - error TS7006: Parameter 'compiler' implicitly has an 'any' type.

61   export function addTypesToCompiler(type: NBTFormat, compiler)
                                                         ~~~~~~~~

node_modules/.pnpm/[email protected]/node_modules/prismarine-nbt/typings/index.d.ts:63:19 - error TS7010: 'addTypesToInterpreter', which lacks return-type annotation, implicitly has an 'any' return type.

63   export function addTypesToInterpreter(type: NBTFormat, protodef)
                     ~~~~~~~~~~~~~~~~~~~~~

node_modules/.pnpm/[email protected]/node_modules/prismarine-nbt/typings/index.d.ts:63:58 - error TS7006: Parameter 'protodef' implicitly has an 'any' type.

63   export function addTypesToInterpreter(type: NBTFormat, protodef)
                                                            ~~~~~~~~


Found 4 errors in the same file, starting at: node_modules/.pnpm/[email protected]/node_modules/prismarine-nbt/typings/index.d.ts:61

 ELIFECYCLE  Command failed with exit code 2.

These errors can be fixed by installing prismarine-nbt from source. (This github repo) Would it be possible to get a release made so it doesn't need to be installed from source.

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

1 participant