Skip to content

Type hints unavailable from LDClient type export #714

Open
@vhscom

Description

Describe the bug
When importing the client from the cloudflare package the JSDoc typings are not available.

To reproduce

Import your client like:

import {init, type LDClient} from '@launchdarkly/cloudflare-server-sdk';

Expected behavior

I would expect hovering over LDClient to provide JSDoc-style comments and type hints like:
Screenshot 2024-12-16 at 4 01 31 PM

Unfortunately, that only seems to be working when the client is imported from @launchdarkly/js-server-sdk-common.

Logs
n/a

SDK version
2.6.3

Language version, developer tools
JS core SDK package named cloudflare, VSCode

OS/platform
macOS

Additional context
Nice to have. Would make my life easier.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: sdk/cloudflareLabel for issues affecting the sdk/cloudflare package.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions