frejs / fre

:ghost: Tiny Concurrent UI library with Fiber.

Home Page:https://fre.deno.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[typescript] publish type declarations file

hyrious opened this issue · comments

Although your package.json has "typings": "dist/types/index.d.ts",, there is no such file.

Add an extra build step tsc -p src -d --emitDeclarationOnly --outDir=dist/types before release.

As a workaround, I put it in global script and add such global.d.ts:

export {};

declare global {
    var fre: typeof import("fre/src");
}

Thanks!

竟然不是pr😭快来一个

竟然不是pr😭快来一个

这就来 👍