diff --git a/typescript/core/platform/web/function.ts b/typescript/core/platform/web/function.ts new file mode 100644 index 000000000..28aace824 --- /dev/null +++ b/typescript/core/platform/web/function.ts @@ -0,0 +1,12 @@ +export type _function = { + isIE: () => boolean; + getIEVersion: () => number; + isEdge: () => boolean; + isChrome: () => boolean; + isFireFox: () => boolean; + isOpera: () => boolean; + isSafari: () => boolean; + isMac: () => boolean; + isWindows: () => boolean; + isSupportCss3: (style: string) => boolean; +} \ No newline at end of file diff --git a/typescript/core/platform/web/index.ts b/typescript/core/platform/web/index.ts new file mode 100644 index 000000000..469e247a1 --- /dev/null +++ b/typescript/core/platform/web/index.ts @@ -0,0 +1,6 @@ +import { _function } from "./function"; + + +export interface _web extends _function { + +} \ No newline at end of file diff --git a/typescript/index.ts b/typescript/index.ts index eccf63658..18b0d0de5 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -142,6 +142,7 @@ import { IconTextValueCombo } from './case/combo/icontextvaluecombo/combo.iconte import { ListView } from './base/list/listview'; import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center'; import { _msg } from './base/foundation/message'; +import { _web } from './core/platform/web'; type ClassConstructor = T & { @@ -151,7 +152,7 @@ type ClassConstructor = T & { readonly xtype: string; } -export interface BI extends _func, _i18n, _base, _inject, _var { +export interface BI extends _func, _i18n, _base, _inject, _var, _web { OB: ClassConstructor<_OB>; Plugin: _Plugin; Widget: ClassConstructor<_Widget> & _WidgetStatic;