Skip to content

Documentation is wrong #2

@tandrewnichols

Description

@tandrewnichols

All the examples show:

var stairs = require('stairs');
stairs.step(/*...*/) // etc.

But require('stairs') actually returns the class Stairs, so it should be more like:

var stairs = new (require('stairs'))()
stairs.step(/* etc. */)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions