Skip to content

How to have autocompletion? #169

Closed
Closed

Description

@grant

We need fantastic IDE documentation with inline documentation.

import {CloudEvent} from 'cloudevents/v1';
const ce = new CloudEvent();
ce.

image

This requires #65

Activity

  1. lance commented on May 18, 2020

    @lance
    Member

    @grant can you show more of the code here? How are you creating ce?

  2. grant commented on May 18, 2020

    @grant
    MemberAuthor
    const ce = new CloudEvent();

    Is how you create the ce. Doesn't really matter what's in the CloudEvent class.

  3. lance commented on May 18, 2020

    @lance
    Member

    So, I guess I'm not clear on what should change, because this is possible today. Am I missing something?

    image

  4. grant commented on May 18, 2020

    @grant
    MemberAuthor

    This is what I see in my editor (VS Code) after following the Usage section of the README:

    Screen Shot 2020-05-18 at 16 54 44

    Maybe the module isn't updated on npm, but I'd expect to see the experience you're getting when developing locally. I don't want to memorize the CloudEvent properties of course.


    In the above picture, it looks like we're using typescript types (: any, :CloudEvent), which is good.

  5. lance commented on May 19, 2020

    @lance
    Member

    No, the module is not published on npm with these changes yet. You should try from master.

  6. grant commented on May 19, 2020

    @grant
    MemberAuthor

    No, the module is not published on npm with these changes yet. You should try from master.

    OK. Got it. I'll keep this issue open until we publish to npm then. A user can't really build all npm dependencies from source of course.

  7. lance commented on May 27, 2020

    @lance
    Member

    2.0.0 released today, including type definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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