, ...
TypescriptDictionary.ts
export interface typescriptDictionary {
getItems: string;
getItem2: string;
}
export class TypescriptDictionary implements typescriptDictionary {
private _getItems: string;
private _getItem2: string;
constructor (item: string, item2: string ) {
this._getItems = item;
this._getItem2 = item2;
}
public get getItems(): string {
return this._getItems;
}
public get getItem2(): string {
return this._getItem2;
}
}
TypescriptDictionary.ts, , IfcTypescriptDictionary.ts, , .
DemoUsage.ts
import {IfcTypescriptDictionary} from 'filePath';
import {TypescriptDictionary} from 'filePath';
export class UseDemo {
var dictionary: IfcTypescriptDictionary;
dictionary = new TypescriptDictionary('demo text', 'demo text1');
console.log(dictionary.getItems);
console.log(dictionary.getItems2);
}