Permalink
Browse files

IDL2K: KT-15436 js stdlib: org.w3c.fetch.RequestInit has 12 parameter…

…s, all required
  • Loading branch information...
1 parent 099cd81 commit 892e36412d9b866ed44557f34fe14015c189663a @cy6erGn0m cy6erGn0m committed Jan 10, 2017
@@ -1529,7 +1529,7 @@ public external interface ElementDefinitionOptions {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun ElementDefinitionOptions(extends: String?): ElementDefinitionOptions {
+public inline fun ElementDefinitionOptions(extends: String? = null): ElementDefinitionOptions {
val o = js("({})")
o["extends"] = extends
@@ -1807,7 +1807,7 @@ public external interface PromiseRejectionEventInit : EventInit {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun PromiseRejectionEventInit(promise: dynamic, reason: Any?, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): PromiseRejectionEventInit {
+public inline fun PromiseRejectionEventInit(promise: dynamic, reason: Any? = null, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): PromiseRejectionEventInit {
val o = js("({})")
o["promise"] = promise
@@ -2033,7 +2033,7 @@ public external interface ImageBitmapOptions {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun ImageBitmapOptions(imageOrientation: String? = "none", premultiplyAlpha: String? = "default", colorSpaceConversion: String? = "default", resizeWidth: Int?, resizeHeight: Int?, resizeQuality: String? = "low"): ImageBitmapOptions {
+public inline fun ImageBitmapOptions(imageOrientation: String? = "none", premultiplyAlpha: String? = "default", colorSpaceConversion: String? = "default", resizeWidth: Int? = null, resizeHeight: Int? = null, resizeQuality: String? = "low"): ImageBitmapOptions {
val o = js("({})")
o["imageOrientation"] = imageOrientation
@@ -2570,7 +2570,7 @@ public external interface MutationObserverInit {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun MutationObserverInit(childList: Boolean? = false, attributes: Boolean?, characterData: Boolean?, subtree: Boolean? = false, attributeOldValue: Boolean?, characterDataOldValue: Boolean?, attributeFilter: Array<String>?): MutationObserverInit {
+public inline fun MutationObserverInit(childList: Boolean? = false, attributes: Boolean? = null, characterData: Boolean? = null, subtree: Boolean? = false, attributeOldValue: Boolean? = null, characterDataOldValue: Boolean? = null, attributeFilter: Array<String>? = null): MutationObserverInit {
val o = js("({})")
o["childList"] = childList
@@ -2683,7 +2683,7 @@ public external interface ElementCreationOptions {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun ElementCreationOptions(is_: String?): ElementCreationOptions {
+public inline fun ElementCreationOptions(is_: String? = null): ElementCreationOptions {
val o = js("({})")
o["is"] = is_
@@ -3194,7 +3194,7 @@ public external interface ScrollToOptions : ScrollOptions {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun ScrollToOptions(left: Double?, top: Double?, behavior: String? = "auto"): ScrollToOptions {
+public inline fun ScrollToOptions(left: Double? = null, top: Double? = null, behavior: String? = "auto"): ScrollToOptions {
val o = js("({})")
o["left"] = left
@@ -3286,7 +3286,7 @@ public external interface BoxQuadOptions {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun BoxQuadOptions(box: String? = "border", relativeTo: dynamic): BoxQuadOptions {
+public inline fun BoxQuadOptions(box: String? = "border", relativeTo: dynamic = null): BoxQuadOptions {
val o = js("({})")
o["box"] = box
@@ -100,7 +100,7 @@ public external interface RequestInit {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun RequestInit(method: String?, headers: dynamic, body: dynamic, referrer: String?, referrerPolicy: dynamic, mode: String?, credentials: String?, cache: String?, redirect: String?, integrity: String?, keepalive: Boolean?, window: Any?): RequestInit {
+public inline fun RequestInit(method: String? = null, headers: dynamic = null, body: dynamic = null, referrer: String? = null, referrerPolicy: dynamic = null, mode: String? = null, credentials: String? = null, cache: String? = null, redirect: String? = null, integrity: String? = null, keepalive: Boolean? = null, window: Any? = null): RequestInit {
val o = js("({})")
o["method"] = method
@@ -156,7 +156,7 @@ public external interface ResponseInit {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun ResponseInit(status: Short? = 200, statusText: String? = "OK", headers: dynamic): ResponseInit {
+public inline fun ResponseInit(status: Short? = 200, statusText: String? = "OK", headers: dynamic = null): ResponseInit {
val o = js("({})")
o["status"] = status
@@ -55,7 +55,7 @@ public external interface FilePropertyBag : BlobPropertyBag {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun FilePropertyBag(lastModified: Int?, type: String? = ""): FilePropertyBag {
+public inline fun FilePropertyBag(lastModified: Int? = null, type: String? = ""): FilePropertyBag {
val o = js("({})")
o["lastModified"] = lastModified
@@ -105,7 +105,7 @@ public external interface NotificationOptions {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun NotificationOptions(dir: String? = "auto", lang: String? = "", body: String? = "", tag: String? = "", image: String?, icon: String?, badge: String?, sound: String?, vibrate: dynamic, timestamp: Number?, renotify: Boolean? = false, silent: Boolean? = false, noscreen: Boolean? = false, requireInteraction: Boolean? = false, sticky: Boolean? = false, data: Any? = null, actions: Array<NotificationAction>? = arrayOf()): NotificationOptions {
+public inline fun NotificationOptions(dir: String? = "auto", lang: String? = "", body: String? = "", tag: String? = "", image: String? = null, icon: String? = null, badge: String? = null, sound: String? = null, vibrate: dynamic = null, timestamp: Number? = null, renotify: Boolean? = false, silent: Boolean? = false, noscreen: Boolean? = false, requireInteraction: Boolean? = false, sticky: Boolean? = false, data: Any? = null, actions: Array<NotificationAction>? = arrayOf()): NotificationOptions {
val o = js("({})")
o["dir"] = dir
@@ -142,7 +142,7 @@ public external interface NotificationAction {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun NotificationAction(action: String?, title: String?, icon: String?): NotificationAction {
+public inline fun NotificationAction(action: String?, title: String?, icon: String? = null): NotificationAction {
val o = js("({})")
o["action"] = action
@@ -76,7 +76,7 @@ public external interface RegistrationOptions {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun RegistrationOptions(scope: String?, type: String? = "classic"): RegistrationOptions {
+public inline fun RegistrationOptions(scope: String? = null, type: String? = "classic"): RegistrationOptions {
val o = js("({})")
o["scope"] = scope
@@ -112,7 +112,7 @@ public external interface ServiceWorkerMessageEventInit : EventInit {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun ServiceWorkerMessageEventInit(data: Any?, origin: String?, lastEventId: String?, source: UnionMessagePortOrServiceWorker?, ports: Array<MessagePort>?, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ServiceWorkerMessageEventInit {
+public inline fun ServiceWorkerMessageEventInit(data: Any? = null, origin: String? = null, lastEventId: String? = null, source: UnionMessagePortOrServiceWorker? = null, ports: Array<MessagePort>? = null, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ServiceWorkerMessageEventInit {
val o = js("({})")
o["data"] = data
@@ -282,7 +282,7 @@ public external interface ForeignFetchResponse {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun ForeignFetchResponse(response: Response?, origin: String?, headers: Array<String>?): ForeignFetchResponse {
+public inline fun ForeignFetchResponse(response: Response?, origin: String? = null, headers: Array<String>? = null): ForeignFetchResponse {
val o = js("({})")
o["response"] = response
@@ -319,7 +319,7 @@ public external interface ExtendableMessageEventInit : ExtendableEventInit {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun ExtendableMessageEventInit(data: Any?, origin: String?, lastEventId: String?, source: UnionClientOrMessagePortOrServiceWorker?, ports: Array<MessagePort>?, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ExtendableMessageEventInit {
+public inline fun ExtendableMessageEventInit(data: Any? = null, origin: String? = null, lastEventId: String? = null, source: UnionClientOrMessagePortOrServiceWorker? = null, ports: Array<MessagePort>? = null, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ExtendableMessageEventInit {
val o = js("({})")
o["data"] = data
@@ -360,7 +360,7 @@ public external interface CacheQueryOptions {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun CacheQueryOptions(ignoreSearch: Boolean? = false, ignoreMethod: Boolean? = false, ignoreVary: Boolean? = false, cacheName: String?): CacheQueryOptions {
+public inline fun CacheQueryOptions(ignoreSearch: Boolean? = false, ignoreMethod: Boolean? = false, ignoreVary: Boolean? = false, cacheName: String? = null): CacheQueryOptions {
val o = js("({})")
o["ignoreSearch"] = ignoreSearch
@@ -387,7 +387,7 @@ public external interface CacheBatchOperation {
}
@Suppress("NOTHING_TO_INLINE")
-public inline fun CacheBatchOperation(type: String?, request: Request?, response: Response?, options: CacheQueryOptions?): CacheBatchOperation {
+public inline fun CacheBatchOperation(type: String? = null, request: Request? = null, response: Response? = null, options: CacheQueryOptions? = null): CacheBatchOperation {
val o = js("({})")
o["type"] = type

0 comments on commit 892e364

Please sign in to comment.