Index: Source/modules/serviceworkers/Body.idl |
diff --git a/Source/modules/serviceworkers/Body.idl b/Source/modules/serviceworkers/Body.idl |
index 32b58835b7745cb7c9f74fcde732efc47918b9b7..7deca8e3f02bef986e56ead0f218cab61d9d4374 100644 |
--- a/Source/modules/serviceworkers/Body.idl |
+++ b/Source/modules/serviceworkers/Body.idl |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
// http://fetch.spec.whatwg.org/#body |
+typedef object JSON; |
[ |
RuntimeEnabled=ServiceWorker, |
Exposed=ServiceWorker, |
@@ -12,11 +13,11 @@ |
TypeChecking=Interface, |
] interface Body { |
readonly attribute boolean bodyUsed; |
- [CallWith=ScriptState] Promise arrayBuffer(); |
- [CallWith=ScriptState] Promise blob(); |
- [CallWith=ScriptState] Promise json(); |
- [CallWith=ScriptState] Promise text(); |
+ [CallWith=ScriptState] Promise<ArrayBuffer> arrayBuffer(); |
+ [CallWith=ScriptState] Promise<Blob> blob(); |
+ [CallWith=ScriptState] Promise<JSON> json(); |
+ [CallWith=ScriptState] Promise<USVString> text(); |
// Still to be implemented. |
- // [CallWith=ScriptState] Promise formData(); |
+ // [CallWith=ScriptState] Promise<FormData> formData(); |
}; |