Union types for mime converter

This commit is contained in:
Wim Looman
2015-01-19 17:14:58 +13:00
parent ae32a37d40
commit 3f918a3696
+2 -2
View File
@@ -307,8 +307,8 @@ declare module "rest/mime/registry" {
module registry {
interface MIMEConverter {
read(value: string): any; // any or when.Promise<any>;
write(value: any): any; // string or when.Promise<string>;
read(value: string): any | when.Promise<any>;
write(value: any): string | when.Promise<string>;
}
interface Registry {