Update winjs.d.ts to include the class ErrorFromName

From http://msdn.microsoft.com/en-us/library/windows/apps/br211689.aspx#methods, the class ErrorFromName was missing.
This commit is contained in:
Aaron
2013-08-30 15:37:28 -05:00
parent 9653895ef1
commit e26d31d81d
+3
View File
@@ -62,6 +62,9 @@ declare module WinJS {
function start(): void;
function stop(): void;
}
class ErrorFromName {
constructor(name: string, message?: string);
}
class Promise<T> {
constructor(init: (c: any, e: any, p: any) => void);
then<U>(success?: (value: T) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void ): Promise<U>;