Skip to content

better type information (typescript) #620

@maku

Description

@maku

Although arangojs is written in typescript the type information is not really super strong.

e.g. when working with collections (super class BaseCollection) there are several methods which return type "Promise<any>". (and so on...)

Also, not all types are accessible via importing from 'arangojs'
e.g. when I want to use the type 'ArrayCursor' I have to:

import { ArrayCursor } from 'arangojs/lib/async/cursor'; or
import { ArrayCursor } from 'arangojs/lib/cjs/cursor';

Would it be possible to provide better type information?

Metadata

Metadata

Assignees

No one assigned

    Labels

    TypescriptThis issue is about Typescript.fixedIssue has been resolved but remains open due to a pending release.semver-majorThis issue requires backwards-incompatible changes to address.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions