|
1 | 1 | { |
2 | 2 | "metadata": { |
3 | 3 | "toolPackage": "@microsoft/api-extractor", |
4 | | - "toolVersion": "7.34.4", |
| 4 | + "toolVersion": "7.43.1", |
5 | 5 | "schemaVersion": 1011, |
6 | 6 | "oldestForwardsCompatibleVersion": 1001, |
7 | 7 | "tsdocConfig": { |
|
173 | 173 | "preserveMemberOrder": false, |
174 | 174 | "members": [ |
175 | 175 | { |
176 | | - "kind": "Variable", |
177 | | - "canonicalReference": "@google-cloud/functions-framework!cloudEvent:var", |
| 176 | + "kind": "Function", |
| 177 | + "canonicalReference": "@google-cloud/functions-framework!cloudEvent:function(1)", |
178 | 178 | "docComment": "/**\n * Register a function that handles CloudEvents.\n *\n * @param functionName - the name of the function\n *\n * @param handler - the function to trigger when handling CloudEvents\n *\n * @public\n */\n", |
179 | 179 | "excerptTokens": [ |
180 | 180 | { |
181 | 181 | "kind": "Content", |
182 | | - "text": "cloudEvent: " |
| 182 | + "text": "cloudEvent: <T = " |
183 | 183 | }, |
184 | 184 | { |
185 | 185 | "kind": "Content", |
186 | | - "text": "<T = unknown>(functionName: string, handler: " |
| 186 | + "text": "unknown" |
| 187 | + }, |
| 188 | + { |
| 189 | + "kind": "Content", |
| 190 | + "text": ">(functionName: " |
| 191 | + }, |
| 192 | + { |
| 193 | + "kind": "Content", |
| 194 | + "text": "string" |
| 195 | + }, |
| 196 | + { |
| 197 | + "kind": "Content", |
| 198 | + "text": ", handler: " |
187 | 199 | }, |
188 | 200 | { |
189 | 201 | "kind": "Reference", |
|
192 | 204 | }, |
193 | 205 | { |
194 | 206 | "kind": "Content", |
195 | | - "text": "<T>) => void" |
| 207 | + "text": "<T>" |
| 208 | + }, |
| 209 | + { |
| 210 | + "kind": "Content", |
| 211 | + "text": ") => " |
| 212 | + }, |
| 213 | + { |
| 214 | + "kind": "Content", |
| 215 | + "text": "void" |
196 | 216 | } |
197 | 217 | ], |
198 | 218 | "fileUrlPath": "src/function_registry.ts", |
199 | | - "isReadonly": true, |
| 219 | + "returnTypeTokenRange": { |
| 220 | + "startIndex": 8, |
| 221 | + "endIndex": 9 |
| 222 | + }, |
200 | 223 | "releaseTag": "Public", |
201 | | - "name": "cloudEvent", |
202 | | - "variableTypeTokenRange": { |
203 | | - "startIndex": 1, |
204 | | - "endIndex": 4 |
205 | | - } |
| 224 | + "overloadIndex": 1, |
| 225 | + "parameters": [ |
| 226 | + { |
| 227 | + "parameterName": "functionName", |
| 228 | + "parameterTypeTokenRange": { |
| 229 | + "startIndex": 3, |
| 230 | + "endIndex": 4 |
| 231 | + }, |
| 232 | + "isOptional": false |
| 233 | + }, |
| 234 | + { |
| 235 | + "parameterName": "handler", |
| 236 | + "parameterTypeTokenRange": { |
| 237 | + "startIndex": 5, |
| 238 | + "endIndex": 7 |
| 239 | + }, |
| 240 | + "isOptional": false |
| 241 | + } |
| 242 | + ], |
| 243 | + "typeParameters": [ |
| 244 | + { |
| 245 | + "typeParameterName": "T", |
| 246 | + "constraintTokenRange": { |
| 247 | + "startIndex": 0, |
| 248 | + "endIndex": 0 |
| 249 | + }, |
| 250 | + "defaultTypeTokenRange": { |
| 251 | + "startIndex": 1, |
| 252 | + "endIndex": 2 |
| 253 | + } |
| 254 | + } |
| 255 | + ], |
| 256 | + "name": "cloudEvent" |
206 | 257 | }, |
207 | 258 | { |
208 | 259 | "kind": "Interface", |
|
896 | 947 | } |
897 | 948 | }, |
898 | 949 | { |
899 | | - "kind": "Variable", |
900 | | - "canonicalReference": "@google-cloud/functions-framework!http:var", |
| 950 | + "kind": "Function", |
| 951 | + "canonicalReference": "@google-cloud/functions-framework!http:function(1)", |
901 | 952 | "docComment": "/**\n * Register a function that responds to HTTP requests.\n *\n * @param functionName - the name of the function\n *\n * @param handler - the function to invoke when handling HTTP requests\n *\n * @public\n */\n", |
902 | 953 | "excerptTokens": [ |
903 | 954 | { |
904 | 955 | "kind": "Content", |
905 | | - "text": "http: " |
| 956 | + "text": "http: (functionName: " |
906 | 957 | }, |
907 | 958 | { |
908 | 959 | "kind": "Content", |
909 | | - "text": "(functionName: string, handler: " |
| 960 | + "text": "string" |
| 961 | + }, |
| 962 | + { |
| 963 | + "kind": "Content", |
| 964 | + "text": ", handler: " |
910 | 965 | }, |
911 | 966 | { |
912 | 967 | "kind": "Reference", |
|
915 | 970 | }, |
916 | 971 | { |
917 | 972 | "kind": "Content", |
918 | | - "text": ") => void" |
| 973 | + "text": ") => " |
| 974 | + }, |
| 975 | + { |
| 976 | + "kind": "Content", |
| 977 | + "text": "void" |
919 | 978 | } |
920 | 979 | ], |
921 | 980 | "fileUrlPath": "src/function_registry.ts", |
922 | | - "isReadonly": true, |
| 981 | + "returnTypeTokenRange": { |
| 982 | + "startIndex": 5, |
| 983 | + "endIndex": 6 |
| 984 | + }, |
923 | 985 | "releaseTag": "Public", |
924 | | - "name": "http", |
925 | | - "variableTypeTokenRange": { |
926 | | - "startIndex": 1, |
927 | | - "endIndex": 4 |
928 | | - } |
| 986 | + "overloadIndex": 1, |
| 987 | + "parameters": [ |
| 988 | + { |
| 989 | + "parameterName": "functionName", |
| 990 | + "parameterTypeTokenRange": { |
| 991 | + "startIndex": 1, |
| 992 | + "endIndex": 2 |
| 993 | + }, |
| 994 | + "isOptional": false |
| 995 | + }, |
| 996 | + { |
| 997 | + "parameterName": "handler", |
| 998 | + "parameterTypeTokenRange": { |
| 999 | + "startIndex": 3, |
| 1000 | + "endIndex": 4 |
| 1001 | + }, |
| 1002 | + "isOptional": false |
| 1003 | + } |
| 1004 | + ], |
| 1005 | + "name": "http" |
929 | 1006 | }, |
930 | 1007 | { |
931 | 1008 | "kind": "Interface", |
|
1757 | 1834 | "name": "Request_2", |
1758 | 1835 | "preserveMemberOrder": false, |
1759 | 1836 | "members": [ |
| 1837 | + { |
| 1838 | + "kind": "PropertySignature", |
| 1839 | + "canonicalReference": "@google-cloud/functions-framework!Request_2#abortController:member", |
| 1840 | + "docComment": "/**\n * An AbortController used to signal cancellation of a function invocation (e.g. in case of time out).\n */\n", |
| 1841 | + "excerptTokens": [ |
| 1842 | + { |
| 1843 | + "kind": "Content", |
| 1844 | + "text": "abortController?: " |
| 1845 | + }, |
| 1846 | + { |
| 1847 | + "kind": "Reference", |
| 1848 | + "text": "AbortController", |
| 1849 | + "canonicalReference": "!AbortController:interface" |
| 1850 | + }, |
| 1851 | + { |
| 1852 | + "kind": "Content", |
| 1853 | + "text": ";" |
| 1854 | + } |
| 1855 | + ], |
| 1856 | + "isReadonly": false, |
| 1857 | + "isOptional": true, |
| 1858 | + "releaseTag": "Public", |
| 1859 | + "name": "abortController", |
| 1860 | + "propertyTypeTokenRange": { |
| 1861 | + "startIndex": 1, |
| 1862 | + "endIndex": 2 |
| 1863 | + } |
| 1864 | + }, |
1760 | 1865 | { |
1761 | 1866 | "kind": "PropertySignature", |
1762 | 1867 | "canonicalReference": "@google-cloud/functions-framework!Request_2#executionId:member", |
|
1874 | 1979 | } |
1875 | 1980 | ] |
1876 | 1981 | }, |
1877 | | - { |
1878 | | - "kind": "Variable", |
1879 | | - "canonicalReference": "@google-cloud/functions-framework!typed:var", |
1880 | | - "docComment": "/**\n * Register a function that handles strongly typed invocations.\n *\n * @param functionName - the name of the function\n *\n * @param handler - the function to trigger\n */\n", |
1881 | | - "excerptTokens": [ |
1882 | | - { |
1883 | | - "kind": "Content", |
1884 | | - "text": "typed: " |
1885 | | - }, |
1886 | | - { |
1887 | | - "kind": "Content", |
1888 | | - "text": "<T, U>(functionName: string, handler: " |
1889 | | - }, |
1890 | | - { |
1891 | | - "kind": "Reference", |
1892 | | - "text": "TypedFunction", |
1893 | | - "canonicalReference": "@google-cloud/functions-framework!TypedFunction:interface" |
1894 | | - }, |
1895 | | - { |
1896 | | - "kind": "Content", |
1897 | | - "text": "<T, U> | ((req: T) => U | " |
1898 | | - }, |
1899 | | - { |
1900 | | - "kind": "Reference", |
1901 | | - "text": "Promise", |
1902 | | - "canonicalReference": "!Promise:interface" |
1903 | | - }, |
1904 | | - { |
1905 | | - "kind": "Content", |
1906 | | - "text": "<U>)) => void" |
1907 | | - } |
1908 | | - ], |
1909 | | - "fileUrlPath": "src/function_registry.ts", |
1910 | | - "isReadonly": true, |
1911 | | - "releaseTag": "Public", |
1912 | | - "name": "typed", |
1913 | | - "variableTypeTokenRange": { |
1914 | | - "startIndex": 1, |
1915 | | - "endIndex": 6 |
1916 | | - } |
1917 | | - }, |
1918 | 1982 | { |
1919 | 1983 | "kind": "Interface", |
1920 | 1984 | "canonicalReference": "@google-cloud/functions-framework!TypedFunction:interface", |
|
0 commit comments