Skip to content

The type define can't be derived correctly #389

@hustcc

Description

@hustcc

Code below:

  • wrapper.ts
export * from 'gl-matrix/vec2';

export function otherFunc() {}
  • test.ts
import * as vec2 from './wrapper'

vec2.length(); // here will occur type define error

In addition, the source code structure is different from npm package, this is not a best practice maybe. We have many ways to organize code for code split, But the way now is not very good.

Do you need a pr?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions