Skip to content

Commit

Permalink
Support for 0.9.5 compiler version
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Kriklivets committed Dec 12, 2013
1 parent 41d06a1 commit 6b0e636
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 51 deletions.
31 changes: 14 additions & 17 deletions chartjs/dx.chartjs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ declare module DevExpress.data {
}
export interface StoreOptions {
key?: any;
errorHandler: ErrorHandler;
errorHandler?: ErrorHandler;
loaded?: JQueryCallback;
loading?: JQueryCallback;
modified?: JQueryCallback;
Expand Down Expand Up @@ -294,14 +294,6 @@ declare module DevExpress.data {
export class ODataStore extends Store {
constructor(options?: ODataStoreOptions);
}
interface IODataContextBase {
get(operationName: string, params: { [key: string]: any }): JQueryDeferred<Array<any>>;
invoke(operationName: string, params: { [key: string]: any }, httpMethod?: string): JQueryDeferred<Array<any>>;
objectLink(entityAlias: string, key: any): { __metadata: { uri: string }; }
}
interface IODataContext extends IODataContextBase {
[entitySetName: string]: Store;
}
export interface ODataContextOptions {
url: string;
jsonp?: boolean;
Expand All @@ -310,11 +302,11 @@ declare module DevExpress.data {
beforeSend?: () => any;
entities?: Array<any>;
}
export class ODataContext implements IODataContextBase {
export class ODataContext {
constructor(options?: ODataContextOptions);
get(operationName: string, params: { [key: string]: any }): JQueryDeferred<Array<any>>;
invoke(operationName: string, params: { [key: string]: any }, httpMethod?: string): JQueryDeferred<Array<any>>;
objectLink(entityAlias: string, key: any): { __metadata: { uri: string }; }
objectLink(entityAlias: string, key: any): { __metadata: { uri: string }; };
}
}
declare module DevExpress.ui {
Expand Down Expand Up @@ -1030,7 +1022,12 @@ declare module DevExpress.viz.charts.series {
hoverStyle?: AreaSeriesStyle;
point?: BasePointOptions;
}
export interface RangeBarSeriesOptions extends z_BaseRangeSeriesOptions, z_BaseBarSeriesOptions { }
export interface RangeBarSeriesOptions extends z_BaseBarSeriesOptions {
rangeValue1Field?: string;
rangeValue2Field?: string;
pane?: string;
axis?: string;
}
export interface SplineSeriesOptions extends LineSeriesOptions { }
export interface SplineAreaSeries extends AreaSeriesOptions { }
export interface StackedLineSeries extends LineSeriesOptions { }
Expand Down Expand Up @@ -1373,8 +1370,8 @@ declare module DevExpress.viz.map {
borderColor?: string;
color?: string;
};
dataSource?: any;
area?: {
mapData?: any;
areaSettings?: {
borderColor?: string;
color?: string;
hoveredBorderColor?: string;
Expand All @@ -1389,8 +1386,8 @@ declare module DevExpress.viz.map {
click?: (arg: Proxy) => void;
selectionChanged?: (arg: Proxy) => void;
};
markerDataSource?: any;
marker?: {
markers?: any;
markerSettings?: {
borderColor?: string;
color?: string;
hoveredBorderColor?: string;
Expand Down Expand Up @@ -1448,7 +1445,7 @@ declare module DevExpress.viz.map {
}
export class Proxy {
type: string;
attr(name: string): any;
attribute(name: string): any;
selected(state: boolean): void;
selected(): boolean;
}
Expand Down
4 changes: 2 additions & 2 deletions phonejs/dx.phonejs-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ module Test {
namespace: "global",
defaultLayout: "slideout",
navigation: [
{ title: "Home", action: "#home" },
{ title: "About", action: "#about" }
{ id: "first", title: "Home", action: "#home" },
{ id: "second", title: "About", action: "#about" }
]
});
application.router.register(":view/:id", { view: "home", id: undefined });
Expand Down
49 changes: 17 additions & 32 deletions phonejs/dx.phonejs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ declare module DevExpress.data {
}
export interface StoreOptions {
key?: any;
errorHandler: ErrorHandler;
errorHandler?: ErrorHandler;
loaded?: JQueryCallback;
loading?: JQueryCallback;
modified?: JQueryCallback;
Expand Down Expand Up @@ -294,14 +294,6 @@ declare module DevExpress.data {
export class ODataStore extends Store {
constructor(options?: ODataStoreOptions);
}
interface IODataContextBase {
get(operationName: string, params: { [key: string]: any }): JQueryDeferred<Array<any>>;
invoke(operationName: string, params: { [key: string]: any }, httpMethod?: string): JQueryDeferred<Array<any>>;
objectLink(entityAlias: string, key: any): { __metadata: { uri: string }; }
}
interface IODataContext extends IODataContextBase {
[entitySetName: string]: Store;
}
export interface ODataContextOptions {
url: string;
jsonp?: boolean;
Expand All @@ -310,24 +302,18 @@ declare module DevExpress.data {
beforeSend?: () => any;
entities?: Array<any>;
}
export class ODataContext implements IODataContextBase {
export class ODataContext {
constructor(options?: ODataContextOptions);
get(operationName: string, params: { [key: string]: any }): JQueryDeferred<Array<any>>;
invoke(operationName: string, params: { [key: string]: any }, httpMethod?: string): JQueryDeferred<Array<any>>;
objectLink(entityAlias: string, key: any): { __metadata: { uri: string }; }
objectLink(entityAlias: string, key: any): { __metadata: { uri: string }; };
}
}
declare module DevExpress.framework {
interface NavigationItem {
title: string;
icon?: string;
root?: boolean;
action: any;
}
export interface dxViewOptions {
name: string;
title: string;
layout: string;
title?: string;
layout?: string;
}
export class dxView extends ui.Component {
constructor(options?: dxViewOptions);
Expand Down Expand Up @@ -365,19 +351,19 @@ declare module DevExpress.framework {
export class dxContent extends ui.Component {
constructor(options?: dxLayoutOptions);
}
export interface CommandOptions extends ui.ComponentOptions {
export interface dxCommandOptions extends ui.ComponentOptions {
id: string;
action: any;
icon: string;
title: string;
iconSrc: string;
visible: boolean;
action?: any;
icon?: string;
title?: string;
iconSrc?: string;
visible?: boolean;
}
export class dxCommand extends ui.Component {
public beforeExecute: JQueryCallback;
public afterExecute: JQueryCallback;
constructor(element: JQuery, options?: CommandOptions);
constructor(element: Element, options?: CommandOptions);
constructor(element: JQuery, options?: dxCommandOptions);
constructor(element: Element, options?: dxCommandOptions);
execute(): void;
}
export class dxCommandContainer extends ui.Component {
Expand Down Expand Up @@ -543,7 +529,7 @@ declare module DevExpress.framework {
disableViewCache?: boolean;
stateManager?: StateManager;
navigationManager?: NavigationManager;
navigation?: NavigationItem[];
navigation?: dxCommandOptions[];
commandMapping?: CommandMap;
}
export class Application {
Expand All @@ -552,7 +538,7 @@ declare module DevExpress.framework {
public components: any[];
public stateManager: StateManager;
public commandMapping: CommandMap;
public navigation: NavigationItem[];
public navigation: dxCommand[];
public navigationManager: NavigationManager;
public beforeViewSetup: JQueryCallback;
public afterViewSetup: JQueryCallback;
Expand Down Expand Up @@ -669,7 +655,7 @@ declare module DevExpress.framework.html {
}
export interface HtmlApplicationBaseOptions extends framework.ApplicationOptions {
device?: devices.Device;
defaultLayout?: string;
navigationType?: string;
}
export class HtmlApplicationBase extends framework.Application {
public viewRendered: JQueryCallback;
Expand All @@ -685,7 +671,6 @@ declare module DevExpress.framework.html {
}
export class HtmlApplication extends HtmlApplicationBase {
public viewEngine: ViewEngineBase;
public blankViewRendered: JQueryCallback;
constructor(options?: HtmlApplicationOptions);
}
}
Expand Down Expand Up @@ -904,7 +889,7 @@ declare module DevExpress.ui {
autoPagingEnabled?: boolean;
scrollingEnabled?: boolean;
showScrollbar?: boolean;
useNative?: boolean;
useNativeScrolling?: boolean;
grouped?: boolean;
editEnabled?: boolean;
showNextButton?: boolean;
Expand Down

0 comments on commit 6b0e636

Please sign in to comment.