Skip to content

Commit

Permalink
IDL2K: KT-15436 js stdlib: org.w3c.fetch.RequestInit has 12 parameter…
Browse files Browse the repository at this point in the history
…s, all required
  • Loading branch information
Sergey Mashkov committed Jan 11, 2017
1 parent 099cd81 commit 892e364
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions js/js.libraries/src/generated/org.w3c.dom.kt
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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_
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions js/js.libraries/src/generated/org.w3c.fetch.kt
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion js/js.libraries/src/generated/org.w3c.files.kt
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions js/js.libraries/src/generated/org.w3c.notifications.kt
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions js/js.libraries/src/generated/org.w3c.workers.kt
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 892e364

Please sign in to comment.