Skip to content

[Bug]: type imports not working in v2 #214

@OrmEmbaar

Description

@OrmEmbaar

SDK Version

2.0.0

Environment

Node 22

Describe the Bug

The types imports appear to be broken for v2. createHelius should returned a defined HeliusClient type. However, the returned value has a type of any. When inspecting the installed package in node_modules, it seems the old v1 types are still present and that package.json types field is pointing at those types.

Image

Steps to Reproduce

import { createHelius, type HeliusClient } from 'helius-sdk'

const helius = createHelius({ apiKey: process.env.HELIUS_API_KEY! });

helius.hahaThisIsNotAMethod('foooo'); // builds without error

Expected Behavior

The package types should work properly with typescript.

Logs/Screenshots

Additional Checks

  • I have searched for existing issues and this is not a duplicate.
  • I have tested with the latest version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions