Description
The npm package is written in TypeScript, but page-flip@2.0.7 does not appear to publish TypeScript declaration files or a types entry in package.json.
This means TypeScript consumers need to add their own ambient module declarations, even for the public API documented in the README.
Expected behavior
The package should publish .d.ts files and expose them through package.json, for example:
{
"types": "dist/js/page-flip.d.ts"
}
or another generated declaration path.
Why this matters
Consumers using TypeScript currently cannot import the package without adding local declarations such as:
import { PageFlip } from "page-flip";
This is especially awkward because the source project itself is TypeScript and the public API is already typed internally.
Environment
- package:
page-flip
- version:
2.0.7
- TypeScript consumer project
Description
The npm package is written in TypeScript, but
page-flip@2.0.7does not appear to publish TypeScript declaration files or atypesentry inpackage.json.This means TypeScript consumers need to add their own ambient module declarations, even for the public API documented in the README.
Expected behavior
The package should publish
.d.tsfiles and expose them throughpackage.json, for example:{ "types": "dist/js/page-flip.d.ts" }or another generated declaration path.
Why this matters
Consumers using TypeScript currently cannot import the package without adding local declarations such as:
This is especially awkward because the source project itself is TypeScript and the public API is already typed internally.
Environment
page-flip2.0.7