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

Public Methods catbox.connection Is Not Defined In The TypeScript Definition #4541

Closed
LukeBBC opened this issue Jan 21, 2025 · 0 comments
Closed
Labels
bug Bug or defect

Comments

@LukeBBC
Copy link

LukeBBC commented Jan 21, 2025

Runtime

node.js

Runtime version

v18.20.4

Module version

^10.2.3

Last module version without issue

No response

Used with

"@hapi/catbox-redis": "^6.0.2",

Any other relevant information

No response

What are you trying to achieve or the steps to reproduce?

We are using catbox.connection which is defined as we have logged out the library, but it is not defined in the type definition.

catbox (catbox client)
public methods [
   'constructor',
   'start',
   'stop',
   'isReady',
   'validateSegmentName',
   'get',
   'set',
   'drop'
 ]
public keys [
   'connection'
 ]


catbox.connection
public methods [
   'constructor',
   'start',
   '_connection',
   'stop',
   'isReady',
   'validateSegmentName',
   'get',
   'set',
   'drop',
   'generateKey'
 ]
catbox.connection public keys [
   'settings'
 ]

What was the result you got?

Property 'connection' does not exist on type 'ClientApi'.ts(2339)

What result did you expect?

I would like the connection method to be defined in the type definitions.

@LukeBBC LukeBBC added the bug Bug or defect label Jan 21, 2025
@LukeBBC LukeBBC closed this as completed Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug or defect
Projects
None yet
Development

No branches or pull requests

1 participant