initial cordova-plugin-ms-adal.d.ts + fixed TS7010

This commit is contained in:
Kai Walter
2016-03-13 19:53:52 +01:00
parent 0cb722c27a
commit a446d802e4
2 changed files with 5 additions and 5 deletions
@@ -15,7 +15,7 @@ function test_cordova_plugin_ms_adal() {
context.tokenCache.readItems().then((cacheItems) => {
if (cacheItems.length >= 1) {
var testUserId;
var testUserId: string;
testUserId = cacheItems[0].userInfo.userId;
context.acquireTokenSilentAsync(testConfiguration.resourceUrl, testConfiguration.clientId, testUserId).then((authResult) => {
+4 -4
View File
@@ -35,11 +35,11 @@ declare namespace Microsoft {
}
interface IPromise {
then(doneCallBack: () => void, failCallBack?: (message: string) => void);
then(doneCallBack: () => any, failCallBack?: (message: string) => any):any;
}
interface IPromiseTokenCacheItems {
then(doneCallBack: (tokenCacheItems: ITokenCacheItem[]) => void, failCallBack?: (message: string) => void);
then(doneCallBack: (tokenCacheItems: ITokenCacheItem[]) => any, failCallBack?: (message: string) => any):any;
}
class TokenCache implements ITokenCache {
@@ -101,7 +101,7 @@ declare namespace Microsoft {
}
interface IPromiseAuthenticationResult {
then(doneCallBack: (context: IAuthenticationResult) => void, failCallBack?: (message: string) => void);
then(doneCallBack: (context: IAuthenticationResult) => any, failCallBack?: (message: string) => any):any;
}
interface IAuthenticationContext {
@@ -142,7 +142,7 @@ declare namespace Microsoft {
}
interface IPromiseAuthenticationContext {
then(doneCallBack: (context: IAuthenticationContext) => void, failCallBack?: (message: string) => void);
then(doneCallBack: (context: IAuthenticationContext) => any, failCallBack?: (message: string) => any):any;
}
class AuthenticationContext implements IAuthenticationContext {