vue-fragment icon indicating copy to clipboard operation
vue-fragment copied to clipboard

Publish TS typings to npm

Open unematiii opened this issue 5 years ago • 4 comments

Published package doesn't seem to include typings. Can we have those published as well?

unematiii avatar Jun 30 '20 19:06 unematiii

This would be useful seeing as they're already in the repo.

au5ton avatar Jul 28 '20 20:07 au5ton

Have to ts ignore the import...

// @ts-ignore
import { Fragment } from 'vue-fragment';

So yea would be nice!

yooouuri avatar Jul 30 '20 11:07 yooouuri

Have to ts ignore the import...

// @ts-ignore
import { Fragment } from 'vue-fragment';

So yea would be nice!

Or add .d.ts with

declare module "vue-fragment";

alvaro-canepa avatar Sep 06 '20 10:09 alvaro-canepa

I will often create a types/missing-modules.d.ts file and declare any missing package types here:

// types/missing-modules.d.ts

declare module "vue-fragment";
// ...etc

kendallroth avatar Sep 30 '20 03:09 kendallroth