|
7985 | 7985 | "id": "def-server.IContextContainer", |
7986 | 7986 | "type": "Interface", |
7987 | 7987 | "label": "IContextContainer", |
7988 | | - "signature": [ |
7989 | | - { |
7990 | | - "pluginId": "core", |
7991 | | - "scope": "server", |
7992 | | - "docId": "kibCorePluginApi", |
7993 | | - "section": "def-server.IContextContainer", |
7994 | | - "text": "IContextContainer" |
7995 | | - }, |
7996 | | - "<THandler>" |
7997 | | - ], |
7998 | 7988 | "description": [ |
7999 | 7989 | "\nAn object that handles registration of context providers and configuring handlers with context.\n" |
8000 | 7990 | ], |
8001 | 7991 | "tags": [ |
8002 | 7992 | "remarks", |
8003 | | - "typeParam", |
8004 | 7993 | "public" |
8005 | 7994 | ], |
8006 | 7995 | "children": [ |
|
8043 | 8032 | ], |
8044 | 8033 | "source": { |
8045 | 8034 | "path": "src/core/server/context/container/context.ts", |
8046 | | - "lineNumber": 154, |
8047 | | - "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L154" |
| 8035 | + "lineNumber": 151, |
| 8036 | + "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L151" |
8048 | 8037 | } |
8049 | 8038 | }, |
8050 | 8039 | { |
|
8059 | 8048 | ], |
8060 | 8049 | "source": { |
8061 | 8050 | "path": "src/core/server/context/container/context.ts", |
8062 | | - "lineNumber": 155, |
8063 | | - "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L155" |
| 8051 | + "lineNumber": 152, |
| 8052 | + "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L152" |
8064 | 8053 | } |
8065 | 8054 | }, |
8066 | 8055 | { |
|
8082 | 8071 | ], |
8083 | 8072 | "source": { |
8084 | 8073 | "path": "src/core/server/context/container/context.ts", |
8085 | | - "lineNumber": 156, |
8086 | | - "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L156" |
| 8074 | + "lineNumber": 153, |
| 8075 | + "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L153" |
8087 | 8076 | } |
8088 | 8077 | } |
8089 | 8078 | ], |
|
8095 | 8084 | ], |
8096 | 8085 | "source": { |
8097 | 8086 | "path": "src/core/server/context/container/context.ts", |
8098 | | - "lineNumber": 153, |
8099 | | - "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L153" |
| 8087 | + "lineNumber": 150, |
| 8088 | + "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L150" |
8100 | 8089 | } |
8101 | 8090 | }, |
8102 | 8091 | { |
8103 | 8092 | "id": "def-server.IContextContainer.createHandler", |
8104 | 8093 | "type": "Function", |
8105 | 8094 | "label": "createHandler", |
8106 | 8095 | "signature": [ |
8107 | | - "(pluginOpaqueId: symbol, handler: THandler) => (...rest: ", |
| 8096 | + "(pluginOpaqueId: symbol, handler: ", |
| 8097 | + { |
| 8098 | + "pluginId": "core", |
| 8099 | + "scope": "server", |
| 8100 | + "docId": "kibCoreHttpPluginApi", |
| 8101 | + "section": "def-server.RequestHandler", |
| 8102 | + "text": "RequestHandler" |
| 8103 | + }, |
| 8104 | + "<unknown, unknown, unknown, ", |
8108 | 8105 | { |
8109 | 8106 | "pluginId": "core", |
8110 | 8107 | "scope": "server", |
8111 | 8108 | "docId": "kibCorePluginApi", |
8112 | | - "section": "def-server.HandlerParameters", |
8113 | | - "text": "HandlerParameters" |
| 8109 | + "section": "def-server.RequestHandlerContext", |
| 8110 | + "text": "RequestHandlerContext" |
| 8111 | + }, |
| 8112 | + ", any, { custom: <T extends string | Record<string, any> | Error | { message: string | Error; attributes?: Record<string, any> | undefined; } | Buffer | ", |
| 8113 | + "Stream", |
| 8114 | + " | undefined>(options: ", |
| 8115 | + { |
| 8116 | + "pluginId": "core", |
| 8117 | + "scope": "server", |
| 8118 | + "docId": "kibCoreHttpPluginApi", |
| 8119 | + "section": "def-server.CustomHttpResponseOptions", |
| 8120 | + "text": "CustomHttpResponseOptions" |
8114 | 8121 | }, |
8115 | | - "<THandler>) => ", |
8116 | | - "ShallowPromise", |
8117 | | - "<ReturnType<THandler>>" |
| 8122 | + "<T>) => ", |
| 8123 | + { |
| 8124 | + "pluginId": "core", |
| 8125 | + "scope": "server", |
| 8126 | + "docId": "kibCoreHttpPluginApi", |
| 8127 | + "section": "def-server.KibanaResponse", |
| 8128 | + "text": "KibanaResponse" |
| 8129 | + } |
8118 | 8130 | ], |
8119 | 8131 | "description": [ |
8120 | 8132 | "\nCreate a new handler function pre-wired to context for the plugin.\n" |
|
8132 | 8144 | ], |
8133 | 8145 | "source": { |
8134 | 8146 | "path": "src/core/server/context/container/context.ts", |
8135 | | - "lineNumber": 168, |
8136 | | - "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L168" |
| 8147 | + "lineNumber": 165, |
| 8148 | + "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L165" |
8137 | 8149 | } |
8138 | 8150 | }, |
8139 | 8151 | { |
8140 | 8152 | "type": "Function", |
8141 | 8153 | "label": "handler", |
8142 | 8154 | "isRequired": true, |
8143 | 8155 | "signature": [ |
8144 | | - "THandler" |
| 8156 | + { |
| 8157 | + "pluginId": "core", |
| 8158 | + "scope": "server", |
| 8159 | + "docId": "kibCoreHttpPluginApi", |
| 8160 | + "section": "def-server.RequestHandler", |
| 8161 | + "text": "RequestHandler" |
| 8162 | + }, |
| 8163 | + "<unknown, unknown, unknown, ", |
| 8164 | + { |
| 8165 | + "pluginId": "core", |
| 8166 | + "scope": "server", |
| 8167 | + "docId": "kibCorePluginApi", |
| 8168 | + "section": "def-server.RequestHandlerContext", |
| 8169 | + "text": "RequestHandlerContext" |
| 8170 | + }, |
| 8171 | + ", any, { custom: <T extends string | Record<string, any> | Error | { message: string | Error; attributes?: Record<string, any> | undefined; } | Buffer | ", |
| 8172 | + "Stream", |
| 8173 | + " | undefined>(options: ", |
| 8174 | + { |
| 8175 | + "pluginId": "core", |
| 8176 | + "scope": "server", |
| 8177 | + "docId": "kibCoreHttpPluginApi", |
| 8178 | + "section": "def-server.CustomHttpResponseOptions", |
| 8179 | + "text": "CustomHttpResponseOptions" |
| 8180 | + }, |
| 8181 | + "<T>) => ", |
| 8182 | + { |
| 8183 | + "pluginId": "core", |
| 8184 | + "scope": "server", |
| 8185 | + "docId": "kibCoreHttpPluginApi", |
| 8186 | + "section": "def-server.KibanaResponse", |
| 8187 | + "text": "KibanaResponse" |
| 8188 | + } |
8145 | 8189 | ], |
8146 | 8190 | "description": [ |
8147 | 8191 | "- Handler function to pass context object to." |
8148 | 8192 | ], |
8149 | 8193 | "source": { |
8150 | 8194 | "path": "src/core/server/context/container/context.ts", |
8151 | | - "lineNumber": 169, |
8152 | | - "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L169" |
| 8195 | + "lineNumber": 166, |
| 8196 | + "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L166" |
8153 | 8197 | } |
8154 | 8198 | } |
8155 | 8199 | ], |
8156 | 8200 | "tags": [], |
8157 | 8201 | "returnComment": [ |
8158 | | - "A function that takes `THandlerParameters`, calls `handler` with a new context, and returns a Promise of\nthe `handler` return value." |
| 8202 | + "A function that takes `RequestHandler` parameters, calls `handler` with a new context, and returns a Promise of\nthe `handler` return value." |
8159 | 8203 | ], |
8160 | 8204 | "source": { |
8161 | 8205 | "path": "src/core/server/context/container/context.ts", |
8162 | | - "lineNumber": 167, |
8163 | | - "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L167" |
| 8206 | + "lineNumber": 164, |
| 8207 | + "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L164" |
8164 | 8208 | } |
8165 | 8209 | } |
8166 | 8210 | ], |
8167 | 8211 | "source": { |
8168 | 8212 | "path": "src/core/server/context/container/context.ts", |
8169 | | - "lineNumber": 138, |
8170 | | - "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L138" |
| 8213 | + "lineNumber": 135, |
| 8214 | + "link": "https://github.com/elastic/kibana/tree/mastersrc/core/server/context/container/context.ts#L135" |
8171 | 8215 | }, |
8172 | 8216 | "initialIsOpen": false |
8173 | 8217 | }, |
@@ -16631,23 +16675,14 @@ |
16631 | 16675 | "type": "Function", |
16632 | 16676 | "label": "createContextContainer", |
16633 | 16677 | "signature": [ |
16634 | | - "<THandler extends ", |
16635 | | - { |
16636 | | - "pluginId": "core", |
16637 | | - "scope": "server", |
16638 | | - "docId": "kibCorePluginApi", |
16639 | | - "section": "def-server.HandlerFunction", |
16640 | | - "text": "HandlerFunction" |
16641 | | - }, |
16642 | | - "<any>>() => ", |
| 16678 | + "() => ", |
16643 | 16679 | { |
16644 | 16680 | "pluginId": "core", |
16645 | 16681 | "scope": "server", |
16646 | 16682 | "docId": "kibCorePluginApi", |
16647 | 16683 | "section": "def-server.IContextContainer", |
16648 | 16684 | "text": "IContextContainer" |
16649 | | - }, |
16650 | | - "<THandler>" |
| 16685 | + } |
16651 | 16686 | ], |
16652 | 16687 | "description": [ |
16653 | 16688 | "\nCreates a new {@link IContextContainer} for a service owner." |
|
0 commit comments