From 0bbeafaf4fd58314e2ab53e11d7ee3aa76ab6bdd Mon Sep 17 00:00:00 2001 From: Strato Date: Fri, 11 Mar 2016 13:20:29 +0100 Subject: [PATCH] Added missing interface Windows.Storage.IStorageFolder2 Was introduced in WinRT 2.0. --- winrt/winrt.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/winrt/winrt.d.ts b/winrt/winrt.d.ts index 687d7f83d4..825e8186ee 100644 --- a/winrt/winrt.d.ts +++ b/winrt/winrt.d.ts @@ -10017,7 +10017,7 @@ declare module Windows { removableDevices: Windows.Storage.StorageFolder; videosLibrary: Windows.Storage.StorageFolder; } - export class StorageFolder implements Windows.Storage.IStorageFolder, Windows.Storage.IStorageItem, Windows.Storage.Search.IStorageFolderQueryOperations, Windows.Storage.IStorageItemProperties { + export class StorageFolder implements Windows.Storage.IStorageFolder, Windows.Storage.IStorageFolder2, Windows.Storage.IStorageItem, Windows.Storage.Search.IStorageFolderQueryOperations, Windows.Storage.IStorageItemProperties { attributes: Windows.Storage.FileAttributes; dateCreated: Date; name: string; @@ -10063,6 +10063,7 @@ declare module Windows { getThumbnailAsync(mode: Windows.Storage.FileProperties.ThumbnailMode, requestedSize: number): Windows.Foundation.IAsyncOperation; getThumbnailAsync(mode: Windows.Storage.FileProperties.ThumbnailMode, requestedSize: number, options: Windows.Storage.FileProperties.ThumbnailOptions): Windows.Foundation.IAsyncOperation; static getFolderFromPathAsync(path: string): Windows.Foundation.IAsyncOperation; + tryGetItemAsync(name: string): Windows.Foundation.IAsyncOperation; } export class KnownFolders { static documentsLibrary: Windows.Storage.StorageFolder; @@ -10212,6 +10213,9 @@ declare module Windows { getItemsAsync(): Windows.Foundation.IAsyncOperation>; getItemsAsync(startIndex: number, maxItemsToRetrieve: number): Windows.Foundation.IAsyncOperation>; } + export interface IStorageFolder2 { + tryGetItemAsync(name: string): Windows.Foundation.IAsyncOperation; + } export interface IStorageFile extends Windows.Storage.IStorageItem, Windows.Storage.Streams.IRandomAccessStreamReference, Windows.Storage.Streams.IInputStreamReference { contentType: string; fileType: string;