ashiguruma / patternomaly

Easily generate patterns for use in data graphics
MIT License
524 stars 37 forks source link

How to import patternomaly into typescript project? #15

Closed ChrisK1994 closed 5 years ago

ChrisK1994 commented 6 years ago

Because I am using chart.js with Ionic 2 and I dont know how to do that.

tssobe commented 6 years ago

Any answer? I am using it with angular 2 and typescript

olsnacky commented 6 years ago

import * as pattern from 'patternomaly';

miller45 commented 5 years ago

I added a typings file for code completion and better syntax check https://github.com/ashiguruma/patternomaly/pull/23

blumk commented 5 years ago

This worked for me: import pattern from 'patternomaly';

ashiguruma commented 5 years ago

Fixed by #23. Thanks to @miller45.