Fixed index.d.ts to be used as a module

index.d.ts can allow karma-fixture to be imported as a module like so: 
import fixture from 'karma-fixture'
This commit is contained in:
Afshawn Lotfi
2018-05-31 02:17:52 -04:00
committed by GitHub
parent bb1cc0e143
commit ec2fbc378c

View File

@@ -1,6 +1,7 @@
// Type definitions for karma-fixture 0.2.6
// Project: https://github.com/billtrik/karma-fixture
// Definitions by: Ezekiel Victor <https://github.com/evictor>
// Afshawn Lotfi <https://github.com/afshawnlotfi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace fixture {
@@ -25,3 +26,6 @@ declare namespace fixture {
export function setBase(fixtureBasePath: string): void;
}
export = fixture;
export as namespace fixture;