Skip to content

Create type definitions (.d.ts) for Typescript #40

@mustafarian

Description

@mustafarian

currently it's a little tricky to use this package in a typescript project.

To unroll in a Typescript project one needs to:

  1. Install the package using npm.
  2. Declare the module in typings.d.ts.
    declare module 'unroll'
  3. Import it in the spec file like import * as unroll from 'unroll';

Ideally the second step should be avoided.

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