Skip to content

Commit

Permalink
promise string
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Nov 29, 2015
1 parent 6fdc4ec commit 01387b3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "manifesto",
"version": "0.1.19",
"version": "0.1.20",
"homepage": "https://github.com/edsilv/manifesto",
"authors": [
"edsilv <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions dist/manifesto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ declare var url: any;
declare module Manifesto {
class Utils {
static getLocalisedValue(resource: any, locale: string): string;
static loadResource(uri: string): Promise<any>;
static loadResource(uri: string): Promise<string>;
static loadExternalResource(resource: IExternalResource, clickThrough: (resource: IExternalResource) => Promise<void>, login: (resource: IExternalResource) => Promise<void>, getAccessToken: (resource: IExternalResource) => Promise<IAccessToken>, storeAccessToken: (resource: IExternalResource, token: IAccessToken) => Promise<void>, getStoredAccessToken: (resource: IExternalResource) => Promise<IAccessToken>, handleResourceResponse: (resource: IExternalResource) => Promise<any>, options?: IManifestoOptions): Promise<IExternalResource>;
static loadExternalResources(resources: IExternalResource[], clickThrough: (resource: IExternalResource) => Promise<void>, login: (resource: IExternalResource) => Promise<void>, getAccessToken: (resource: IExternalResource) => Promise<IAccessToken>, storeAccessToken: (resource: IExternalResource, token: IAccessToken) => Promise<void>, getStoredAccessToken: (resource: IExternalResource) => Promise<IAccessToken>, handleResourceResponse: (resource: IExternalResource) => Promise<any>, options?: IManifestoOptions): Promise<IExternalResource[]>;
static authorize(resource: IExternalResource, clickThrough: (resource: IExternalResource) => Promise<void>, login: (resource: IExternalResource) => Promise<void>, getAccessToken: (resource: IExternalResource) => Promise<IAccessToken>, storeAccessToken: (resource: IExternalResource, token: IAccessToken) => Promise<void>, getStoredAccessToken: (resource: IExternalResource) => Promise<IAccessToken>): Promise<IExternalResource>;
Expand Down Expand Up @@ -516,7 +516,7 @@ interface IManifesto {
IIIFResourceType: Manifesto.IIIFResourceType;
isImageProfile(profile: Manifesto.ServiceProfile): boolean;
loadExternalResources: (resources: Manifesto.IExternalResource[], clickThrough: (resource: Manifesto.IExternalResource) => Promise<void>, login: (resource: Manifesto.IExternalResource) => Promise<void>, getAccessToken: (resource: Manifesto.IExternalResource) => Promise<Manifesto.IAccessToken>, storeAccessToken: (resource: Manifesto.IExternalResource, token: Manifesto.IAccessToken) => Promise<void>, getStoredAccessToken: (resource: Manifesto.IExternalResource) => Promise<Manifesto.IAccessToken>, handleResourceResponse: (resource: Manifesto.IExternalResource) => Promise<any>, options?: Manifesto.IManifestoOptions) => Promise<Manifesto.IExternalResource[]>;
loadManifest: (uri: string) => Promise<any>;
loadManifest: (uri: string) => Promise<string>;
ManifestType: Manifesto.ManifestType;
RenderingFormat: Manifesto.RenderingFormat;
ResourceFormat: Manifesto.ResourceFormat;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "manifesto.js",
"version": "0.1.19",
"version": "0.1.20",
"description": "IIIF Presentation API utility library for client and server",
"main": "dist/server/manifesto.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/IManifesto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface IManifesto {
getStoredAccessToken: (resource: Manifesto.IExternalResource) => Promise<Manifesto.IAccessToken>,
handleResourceResponse: (resource: Manifesto.IExternalResource) => Promise<any>,
options?: Manifesto.IManifestoOptions) => Promise<Manifesto.IExternalResource[]>;
loadManifest: (uri: string) => Promise<any>;
loadManifest: (uri: string) => Promise<string>;
ManifestType: Manifesto.ManifestType;
RenderingFormat: Manifesto.RenderingFormat;
ResourceFormat: Manifesto.ResourceFormat;
Expand Down
2 changes: 1 addition & 1 deletion src/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module Manifesto {
return null;
}

static loadResource (uri: string): Promise<any> {
static loadResource (uri: string): Promise<string> {

return new Promise<any>((resolve, reject) => {
var u = url.parse(uri);
Expand Down

0 comments on commit 01387b3

Please sign in to comment.