Skip to content

[help] install wechaty and its types #124

@hailiang-wang

Description

@hailiang-wang

Description

A question about typescript, I notice wechaty has generated index.d.ts. How to add it in my project?

wechaty is installed via npm.

npm install wechaty

The latest version in npmjs.org is v0.6.21.

After referencing the index.d.ts in typings.json, I would like to use wechaty in such way.

image

Currently, it is imported like an usual module.

const {
  Wechaty
  , Config
  , log
} = require('wechaty');

Project Repo

https://github.com/Samurais/wechaty-vessel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions