mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Union types for mime converter
This commit is contained in:
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user