npm.io
0.3.4 • Published 2 years ago

@types/karma-json-preprocessor

Licence
MIT
Version
0.3.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/karma-json-preprocessor

Summary

This package contains type definitions for karma-json-preprocessor (https://github.com/mjeanroy/karma-json-preprocessor#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-json-preprocessor.

index.d.ts

import "karma";

declare module "karma" {
    interface ConfigOptions {
        /**
         * see {@link https://github.com/mjeanroy/karma-json-preprocessor#configuration-1}
         */
        jsonPreprocessor?: JsonPreprocessorOptions | undefined;
    }

    /**
     * Default global variable name is by default `__json__`,
     * but you can override it with your own name in karma configuration:
     */
    interface JsonPreprocessorOptions {
        /**
         * @default '__json__'
         */
        varName?: string | undefined;
        /**
         * @default ''
         */
        stripPrefix?: string | undefined;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0938 GMT
  • Dependencies: @types/karma

Credits

These definitions were written by Piotr Błażejewicz (Peter Blazejewicz).