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

Type errors #531

Open
jonasesser opened this issue Oct 27, 2022 · 0 comments
Open

Type errors #531

jonasesser opened this issue Oct 27, 2022 · 0 comments

Comments

@jonasesser
Copy link

jonasesser commented Oct 27, 2022

Actual behaviour:
VSC shows types errors

Expected behaviour:
No errors in types

Error log:

[{
	"resource": "/d:/Data/Dev/altv-athena-gangstasparadise5/node_modules/tmi.js/types.d.ts",
	"owner": "typescript",
	"code": "1046",
	"severity": 8,
	"message": "Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.",
	"source": "ts",
	"startLineNumber": 5,
	"startColumn": 1,
	"endLineNumber": 5,
	"endColumn": 6
}]
[{
	"resource": "/d:/Data/Dev/altv-athena-gangstasparadise5/node_modules/tmi.js/types.d.ts",
	"owner": "typescript",
	"code": "2503",
	"severity": 8,
	"message": "Cannot find namespace 'http'.",
	"source": "ts",
	"startLineNumber": 86,
	"startColumn": 10,
	"endLineNumber": 86,
	"endColumn": 14
}]
[{
	"resource": "/d:/Data/Dev/altv-athena-gangstasparadise5/node_modules/tmi.js/types.d.ts",
	"owner": "typescript",
	"code": "2714",
	"severity": 8,
	"message": "The expression of an export assignment must be an identifier or qualified name in an ambient context.",
	"source": "ts",
	"startLineNumber": 543,
	"startColumn": 10,
	"endLineNumber": 543,
	"endColumn": 20
}]

Configuration

  • tmi.js version: 1.9.0-pre.1
  • Node version (if applicable): >=16.0.0 -> v18.7.0
  • Browser and version (if applicable):
  • Operating system:
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