diff --git a/typescript/base/single/img/img.ts b/typescript/base/single/img/img.ts new file mode 100644 index 000000000..30adc8151 --- /dev/null +++ b/typescript/base/single/img/img.ts @@ -0,0 +1,8 @@ +import { Single } from "../single"; + +export declare class Img extends Single { + static xtype: string; + + setSrc(src: string): void; + getSrc(): string; +} diff --git a/typescript/index.ts b/typescript/index.ts index 639ffbba4..c706c1944 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -135,6 +135,7 @@ import { YearMonthInterval } from "./widget/yearmonthinterval/yearmonthinterval" import { NumberEditor } from "./widget/numbereditor/numbereditor"; import { TextValueCheckCombo } from "./case/combo/textvaluecheckcombo/combo.textvaluecheck"; import { LinearSegment } from "./case/linersegment/linear.segment"; +import { Img } from "./base/single/img/img"; type ClassConstructor = T & { @@ -285,6 +286,7 @@ export interface BI extends _func, _i18n, _base, _inject { TextValueCheckCombo: typeof TextValueCheckCombo; NumberEditor: typeof NumberEditor; LinearSegment: typeof LinearSegment; + Img: typeof Img; } export default { @@ -429,4 +431,5 @@ export { TextValueCheckCombo, NumberEditor, LinearSegment, + Img, };