@types/karma-fixture
Version:
TypeScript definitions for karma-fixture
55 lines (45 loc) • 2.08 kB
Markdown
# Installation
> `npm install --save @types/karma-fixture`
# Summary
This package contains type definitions for karma-fixture (https://github.com/billtrik/karma-fixture).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-fixture.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-fixture/index.d.ts)
````ts
declare namespace fixture {
let el: HTMLElement;
let json: any[];
function load(...files: string[]): any;
function load(file1: string, append?: boolean): any;
function load(file1: string, file2: string, append?: boolean): any;
function load(file1: string, file2: string, file3: string, append?: boolean): any;
function load(file1: string, file2: string, file3: string, file4: string, append?: boolean): any;
function load(file1: string, file2: string, file3: string, file4: string, file5: string, append?: boolean): any;
function set(...htmlStrs: string[]): HTMLElement | HTMLElement[];
function set(htmlStr1: string, append?: boolean): HTMLElement | HTMLElement[];
function set(htmlStr1: string, htmlStr2: string, append?: boolean): HTMLElement | HTMLElement[];
function set(htmlStr1: string, htmlStr2: string, htmlStr3: string, append?: boolean): HTMLElement | HTMLElement[];
function set(
htmlStr1: string,
htmlStr2: string,
htmlStr3: string,
htmlStr4: string,
append?: boolean,
): HTMLElement | HTMLElement[];
function set(
htmlStr1: string,
htmlStr2: string,
htmlStr3: string,
htmlStr4: string,
htmlStr5: string,
append?: boolean,
): HTMLElement | HTMLElement[];
function cleanup(): void;
function setBase(fixtureBasePath: string): void;
}
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:38 GMT
* Dependencies: none
# Credits
These definitions were written by [Ezekiel Victor](https://github.com/evictor), and [Afshawn Lotfi](https://github.com/afshawnlotfi).