The module declaration should look like the following:
export declare module Conflicts {
export interface Item {}
export interface Item2 {}
export interface Item3 {}
}
The import should be:
import * as conflicts from '../../../_models/conflicts/conflicts';
Then, to use the import, do this:
let c = {} as conflicts.Conflicts.Item3;
Notes:
conflicts with a lower-case 'c' in the usage is basically the
contents of the import.
Conflicts with a capital 'C' in the usage
is the module itself.
- Be sure you capitalize the 'I' of 'Item3' to
match the interface declaration in the module.
- In the
as conflicts part of the import, you can really change conflicts to anything you want. This is just for setting how the import will be referred to in the rest of the file.
export declare module conflicts {}