mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-05 16:10:11 +08:00
Merge pull request #4550 from souchea/master
added new pickers interface / methods to WinRT
This commit is contained in:
Vendored
+29
-4
@@ -44,6 +44,17 @@ declare module Windows {
|
||||
clear(): void;
|
||||
first(): Windows.Foundation.Collections.IIterator<Windows.Foundation.Collections.IKeyValuePair<string, any>>;
|
||||
}
|
||||
export class ValueSet implements Windows.Foundation.Collections.IPropertySet, Windows.Foundation.Collections.IObservableMap<string, any>, Windows.Foundation.Collections.IMap<string, any>, Windows.Foundation.Collections.IIterable<Windows.Foundation.Collections.IKeyValuePair<string, any>> {
|
||||
size: number;
|
||||
onmapchanged: any/* TODO */;
|
||||
lookup(key: string): any;
|
||||
hasKey(key: string): boolean;
|
||||
getView(): Windows.Foundation.Collections.IMapView<string, any>;
|
||||
insert(key: string, value: any): boolean;
|
||||
remove(key: string): void;
|
||||
clear(): void;
|
||||
first(): Windows.Foundation.Collections.IIterator<Windows.Foundation.Collections.IKeyValuePair<string, any>>;
|
||||
}
|
||||
export interface IIterable<T> {
|
||||
first(): Windows.Foundation.Collections.IIterator<T>;
|
||||
}
|
||||
@@ -7940,7 +7951,7 @@ declare module Windows {
|
||||
control: Windows.Networking.Sockets.MessageWebSocketControl;
|
||||
information: Windows.Networking.Sockets.MessageWebSocketInformation;
|
||||
onmessagereceived: any/* TODO */;
|
||||
close(): void;
|
||||
close(): void;
|
||||
close(code: number, reason: string): void;
|
||||
}
|
||||
export class MessageWebSocketControl implements Windows.Networking.Sockets.IMessageWebSocketControl, Windows.Networking.Sockets.IWebSocketControl {
|
||||
@@ -7980,7 +7991,7 @@ declare module Windows {
|
||||
control: Windows.Networking.Sockets.StreamWebSocketControl;
|
||||
information: Windows.Networking.Sockets.StreamWebSocketInformation;
|
||||
inputStream: Windows.Storage.Streams.IInputStream;
|
||||
close(): void;
|
||||
close(): void;
|
||||
close(code: number, reason: string): void;
|
||||
}
|
||||
export class StreamWebSocketControl implements Windows.Networking.Sockets.IStreamWebSocketControl, Windows.Networking.Sockets.IWebSocketControl {
|
||||
@@ -10979,29 +10990,36 @@ declare module Windows {
|
||||
}
|
||||
export interface IFileOpenPicker {
|
||||
commitButtonText: string;
|
||||
continuationData: Windows.Foundation.Collections.ValueSet;
|
||||
fileTypeFilter: Windows.Foundation.Collections.IVector<string>;
|
||||
settingsIdentifier: string;
|
||||
suggestedStartLocation: Windows.Storage.Pickers.PickerLocationId;
|
||||
viewMode: Windows.Storage.Pickers.PickerViewMode;
|
||||
pickSingleFileAsync(): Windows.Foundation.IAsyncOperation<Windows.Storage.StorageFile>;
|
||||
pickMultipleFilesAndContinue(): void;
|
||||
pickMultipleFilesAsync(): Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.Storage.StorageFile>>;
|
||||
pickSingleFileAndContinue(): void;
|
||||
pickSingleFileAsync(): Windows.Foundation.IAsyncOperation<Windows.Storage.StorageFile>;
|
||||
}
|
||||
export interface IFileSavePicker {
|
||||
commitButtonText: string;
|
||||
continuationData: Windows.Foundation.Collections.ValueSet;
|
||||
defaultFileExtension: string;
|
||||
fileTypeChoices: Windows.Foundation.Collections.IMap<string, Windows.Foundation.Collections.IVector<string>>;
|
||||
settingsIdentifier: string;
|
||||
suggestedFileName: string;
|
||||
suggestedSaveFile: Windows.Storage.StorageFile;
|
||||
suggestedStartLocation: Windows.Storage.Pickers.PickerLocationId;
|
||||
pickSaveFileAndContinue(): void;
|
||||
pickSaveFileAsync(): Windows.Foundation.IAsyncOperation<Windows.Storage.StorageFile>;
|
||||
}
|
||||
export interface IFolderPicker {
|
||||
commitButtonText: string;
|
||||
continuationData: Windows.Foundation.Collections.ValueSet;
|
||||
fileTypeFilter: Windows.Foundation.Collections.IVector<string>;
|
||||
settingsIdentifier: string;
|
||||
suggestedStartLocation: Windows.Storage.Pickers.PickerLocationId;
|
||||
viewMode: Windows.Storage.Pickers.PickerViewMode;
|
||||
pickFolderAndContinue(): void;
|
||||
pickSingleFolderAsync(): Windows.Foundation.IAsyncOperation<Windows.Storage.StorageFolder>;
|
||||
}
|
||||
export class FileOpenPicker implements Windows.Storage.Pickers.IFileOpenPicker {
|
||||
@@ -11010,7 +11028,10 @@ declare module Windows {
|
||||
settingsIdentifier: string;
|
||||
suggestedStartLocation: Windows.Storage.Pickers.PickerLocationId;
|
||||
viewMode: Windows.Storage.Pickers.PickerViewMode;
|
||||
continuationData: Windows.Foundation.Collections.ValueSet;
|
||||
pickSingleFileAndContinue(): void;
|
||||
pickSingleFileAsync(): Windows.Foundation.IAsyncOperation<Windows.Storage.StorageFile>;
|
||||
pickMultipleFilesAndContinue(): void;
|
||||
pickMultipleFilesAsync(): Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.Storage.StorageFile>>;
|
||||
}
|
||||
export class FileSavePicker implements Windows.Storage.Pickers.IFileSavePicker {
|
||||
@@ -11021,6 +11042,8 @@ declare module Windows {
|
||||
suggestedFileName: string;
|
||||
suggestedSaveFile: Windows.Storage.StorageFile;
|
||||
suggestedStartLocation: Windows.Storage.Pickers.PickerLocationId;
|
||||
continuationData: Windows.Foundation.Collections.ValueSet;
|
||||
pickSaveFileAndContinue(): void;
|
||||
pickSaveFileAsync(): Windows.Foundation.IAsyncOperation<Windows.Storage.StorageFile>;
|
||||
}
|
||||
export class FolderPicker implements Windows.Storage.Pickers.IFolderPicker {
|
||||
@@ -11029,6 +11052,8 @@ declare module Windows {
|
||||
settingsIdentifier: string;
|
||||
suggestedStartLocation: Windows.Storage.Pickers.PickerLocationId;
|
||||
viewMode: Windows.Storage.Pickers.PickerViewMode;
|
||||
continuationData: Windows.Foundation.Collections.ValueSet;
|
||||
pickFolderAndContinue(): void;
|
||||
pickSingleFolderAsync(): Windows.Foundation.IAsyncOperation<Windows.Storage.StorageFolder>;
|
||||
}
|
||||
}
|
||||
@@ -14750,4 +14775,4 @@ declare module Windows.Foundation {
|
||||
dispatchEvent?(type: string, details: any): boolean;
|
||||
removeEventListener?(eventType: string, listener: Function, capture?: boolean): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user