Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dist folder does not contain the murri.ds.ts file #51

Open
sk1981 opened this issue Feb 24, 2021 · 2 comments
Open

Dist folder does not contain the murri.ds.ts file #51

sk1981 opened this issue Feb 24, 2021 · 2 comments

Comments

@sk1981
Copy link

sk1981 commented Feb 24, 2021

Issue

The dist folder does not have the murri.d.ts file in the types folder but it is references in other files like item.d.ts

https://github.com/Paol-imi/muuri-react/blob/f31c84771cf9fa2d66c12cf5b0dde6d6e090b400/dist/types/interfaces/item.d.ts#L2

The absence of murri.d.ts file causes issue with using typescript.

Expected

murri.d.ts file should be copied into the dist folder.

@sk1981
Copy link
Author

sk1981 commented Feb 24, 2021

@paol-imi this should a be change and I can make the change. Let me know if you have any concerns!

@sk1981 sk1981 changed the title Dist folder does contain the murri.ds.ts file Dist folder does not contain the murri.ds.ts file Feb 24, 2021
@not-Ian
Copy link

not-Ian commented Jun 12, 2021

Any update on this? I'm trying to cast the 'DecoratedGrid' to a Grid in order to call 'refreshItems(...)' on it and I can't import the type properly.

const grid = muuriMap.get('id');
grid.refreshItems([muuriItem]); // error here - "Property 'refreshItems' does not exist on type 'DecoratedGrid'."

I'm newbish at Typescript so I could have a fundamental misunderstanding of what's going wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants