]> git.kaiwu.me - njs.git/commitdiff
HTTP: improved TypeScript API description for detached subrequests.
authorArtem S. Povalyukhin <artem.povaluhin@gmail.com>
Sat, 27 Jun 2020 16:26:41 +0000 (19:26 +0300)
committerArtem S. Povalyukhin <artem.povaluhin@gmail.com>
Sat, 27 Jun 2020 16:26:41 +0000 (19:26 +0300)
nginx/ts/ngx_http_js_module.d.ts

index 4e5c1281b5ad074ba831b8f0a37410f71fb9a92d..bbbc86d18c395314242d6534d79149daf251f076 100644 (file)
@@ -350,7 +350,7 @@ interface NginxHTTPRequest {
     subrequest(uri: NjsStringLike, options: NginxSubrequestOptions | string,
                callback:(reply:NginxHTTPRequest) => void): void;
     subrequest(uri: NjsStringLike, callback:(reply:NginxHTTPRequest) => void): void;
-    subrequest(uri: NjsStringLike, options: NginxSubrequestOptions): void;
+    subrequest(uri: NjsStringLike, options: NginxSubrequestOptions & { detached: true }): void;
     /**
      * Current URI in request, normalized.
      */