@types/karma-browserify
Version:
TypeScript definitions for karma-browserify
50 lines (40 loc) • 1.92 kB
Markdown
# Installation
> `npm install --save @types/karma-browserify`
# Summary
This package contains type definitions for karma-browserify (https://github.com/nikku/karma-browserify#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-browserify.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-browserify/index.d.ts)
````ts
import "karma";
import watchify = require("watchify");
import browserify = require("browserify");
declare module "karma" {
interface ConfigOptions {
/**
* Config entry to configure how the bundle gets created
* see {@link https://github.com/nikku/karma-browserify#usage}
*/
browserify?: BrowserifyOptions | undefined;
/**
* You can configure the underlying watchify instance
* see {@link https://github.com/nikku/karma-browserify#watchify-config}
*/
watchify?: WatchifyOptions | undefined;
}
interface BrowserifyOptions extends browserify.Options {
/**
* You may perform additional configuration in a function passed as the configure option
* and that receives the browserify instance as an argument.
* See {@link https://github.com/nikku/karma-browserify#additional-bundle-configuration}
*/
configure?: ((bundle: browserify.BrowserifyObject) => void) | undefined;
}
type WatchifyOptions = watchify.Options;
}
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
* Dependencies: [@types/browserify](https://npmjs.com/package/@types/browserify), [@types/karma](https://npmjs.com/package/@types/karma), [@types/watchify](https://npmjs.com/package/@types/watchify)
# Credits
These definitions were written by [Piotr Błażejewicz (Peter Blazejewicz)](https://github.com/peterblazejewicz).