Skip to content

Commit

Permalink
Build amd version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan committed May 4, 2018
1 parent 186ab4f commit 3825895
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 5 deletions.
14 changes: 13 additions & 1 deletion amd/browser.dist.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ declare module "adapters/browser.adapters" {
}
}
declare module "adapters/nativescript.adapters" {
import { IWS, IHTTP } from "interfaces/index";
import { IWS, IHTTP, ILocalStorage } from "interfaces/index";
/**
* @namespace Nativescript
* @author Miguel Serrano
Expand Down Expand Up @@ -370,6 +370,18 @@ declare module "adapters/nativescript.adapters" {
class HTTP implements IHTTP {
get(url: string): Promise<object>;
}
/**
* @class LocalStorage
* @author Miguel Serrano
* @description This class is used when the SDK is running in a
* Nativescript Environment.
*/
class LocalStorage implements ILocalStorage {
setItem(key: string, value: string): void;
getItem(key: string): string | null;
removeItem(key: string): void;
clear(): void;
}
}
}
declare module "adapters/node.adapters" {
Expand Down
22 changes: 22 additions & 0 deletions amd/browser.dist.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/browser.dist.js.map

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion amd/browser.dist6.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ declare module "adapters/browser.adapters" {
}
}
declare module "adapters/nativescript.adapters" {
import { IWS, IHTTP } from "interfaces/index";
import { IWS, IHTTP, ILocalStorage } from "interfaces/index";
/**
* @namespace Nativescript
* @author Miguel Serrano
Expand Down Expand Up @@ -370,6 +370,18 @@ declare module "adapters/nativescript.adapters" {
class HTTP implements IHTTP {
get(url: string): Promise<object>;
}
/**
* @class LocalStorage
* @author Miguel Serrano
* @description This class is used when the SDK is running in a
* Nativescript Environment.
*/
class LocalStorage implements ILocalStorage {
setItem(key: string, value: string): void;
getItem(key: string): string | null;
removeItem(key: string): void;
clear(): void;
}
}
}
declare module "adapters/node.adapters" {
Expand Down
22 changes: 22 additions & 0 deletions amd/browser.dist6.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3825895

Please sign in to comment.