TS Typings for TerminalService are incorrect #1701
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
vue2-portable
Milestone
I'm submitting a ... (check one with "x")
CodeSandbox Case (Bug Reports)
Please demonstrate your case at CodeSandbox by using the issue template below. Issues without a test case have much less possibility to be reviewed in detail and assisted.
https://codesandbox.io/s/primevue-issue-template-v3-5tlbl
Current behavior
TerminalService.emit('response', response);
results in the following error:Property 'emit' does not exist on type 'typeof TerminalService'.ts(2339)
TerminalService.$emit('response', response);
results in the following error:Property '$emit' does not exist on type 'typeof TerminalService'.ts(2339)
The definition included is:
However in the documentation there is no $. https://primefaces.org/primevue/showcase/#/terminal
It seems it was fixed in the docs here, but the typings are different. #548
Expected behavior
There would be no error.
Please tell us about your environment:
Windows 11, VSCode 1.61.2, pnpm, TS 4.4.3
Vue version: 3.2.20
PrimeVue version: 3.8.2
The text was updated successfully, but these errors were encountered: