Skip to content

Commit

Permalink
Update type definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
omegascorp committed Jul 15, 2017
1 parent 30ce312 commit 561a328
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "owljs",
"version": "0.8.18",
"version": "0.8.19",
"description": "Backbone-like frontend library",
"main": "index.js",
"typings": "typescript/owl.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions typescript/owl.ajax.d.ts
@@ -1,14 +1,14 @@
/**
* Request settings
*/
export interface RequestSettings {
export interface IRequestSettings {
type: string;
url: string;
data?: Object;
files?: {[key: string]: File};
}

export interface Response {
export interface IResponse {
status: number;
headers: {[key: string]: string}
data: Object
Expand All @@ -17,7 +17,7 @@ export interface Response {
/**
* Makes request to the server
*/
export function request(settings: RequestSettings): Promise<Response>;
export function request(settings: IRequestSettings): Promise<IResponse>;

/**
* Sets a header for each request
Expand Down

0 comments on commit 561a328

Please sign in to comment.