Registry / devops / retyped-html-minifier-tsd-ambient

retyped-html-minifier-tsd-ambient

JSON →
library1.1.1-0jsnpmunverified

DEPRECATED - This package provided ambient TypeScript type definitions for html-minifier, version 1.1.1-0. Originally sourced from DefinitelyTyped, it was published as part of the retyped project which has been superseded. Release cadence: no longer maintained. Differentiator: obsolete; use @types/html-minifier instead.

npm install retyped-html-minifier-tsd-ambient
INSTALL
IMPORT
SIG · RETYPED-HTML-MINIF
R
retyped-html-minifier-tsd-ambient
devopsjavascriptv1.1.1-0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

types
✓ import * as htmlMinifier from 'html-minifier'
✗ /// <reference path="node_modules/retyped-html-minifier-tsd-ambient/html-minifier.d.ts" />
This package provides ambient types; better to use @types/html-minifier
minify
✓ import { minify } from 'html-minifier'
✗ const minify = require('html-minifier').minify
TypeScript types may not be recognized without @types package
Options
✓ import { Options } from 'html-minifier'
✗ const Options = require('html-minifier').Options
Not a runtime value; type import only

Shows how to install and use the current type definitions for html-minifier.

// This package is deprecated. Use @types/html-minifier instead. // Install: npm install --save-dev @types/html-minifier
Debug
Known issues
breakingPackage is deprecated; no longer maintained. Use @types/html-minifier instead.
fix
npm uninstall retyped-html-minifier-tsd-ambient && npm install --save-dev @types/html-minifier
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'html-minifier'
Types not recognized; missing type definitions.
fix
npm install --save-dev @types/html-minifier
TypeScript error: Module 'html-minifier' has no exported member 'minify'
Ambient types not referenced or not compatible with module system.
fix
Switch to @types/html-minifier and use import { minify } from 'html-minifier'
Upgrade
Version history
1.1.1-0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
retyped-html-minifier-tsd-ambient — npm install retyped-html-minifier-tsd-ambient · libregistry