|
1 | 1 | { |
2 | 2 | "metadata": { |
3 | 3 | "toolPackage": "@microsoft/api-extractor", |
4 | | - "toolVersion": "7.18.19", |
| 4 | + "toolVersion": "7.18.20", |
5 | 5 | "schemaVersion": 1004, |
6 | 6 | "oldestForwardsCompatibleVersion": 1001, |
7 | 7 | "tsdocConfig": { |
|
180 | 180 | }, |
181 | 181 | { |
182 | 182 | "kind": "Content", |
183 | | - "text": "(functionName: string, handler: " |
| 183 | + "text": "<T = unknown>(functionName: string, handler: " |
184 | 184 | }, |
185 | 185 | { |
186 | 186 | "kind": "Reference", |
|
189 | 189 | }, |
190 | 190 | { |
191 | 191 | "kind": "Content", |
192 | | - "text": ") => void" |
| 192 | + "text": "<T>) => void" |
193 | 193 | } |
194 | 194 | ], |
195 | 195 | "releaseTag": "Public", |
|
206 | 206 | "excerptTokens": [ |
207 | 207 | { |
208 | 208 | "kind": "Content", |
209 | | - "text": "export declare interface CloudEventFunction " |
| 209 | + "text": "export interface CloudEventFunction<T = " |
| 210 | + }, |
| 211 | + { |
| 212 | + "kind": "Content", |
| 213 | + "text": "unknown" |
| 214 | + }, |
| 215 | + { |
| 216 | + "kind": "Content", |
| 217 | + "text": "> " |
210 | 218 | } |
211 | 219 | ], |
212 | 220 | "releaseTag": "Public", |
| 221 | + "typeParameters": [ |
| 222 | + { |
| 223 | + "typeParameterName": "T", |
| 224 | + "constraintTokenRange": { |
| 225 | + "startIndex": 0, |
| 226 | + "endIndex": 0 |
| 227 | + }, |
| 228 | + "defaultTypeTokenRange": { |
| 229 | + "startIndex": 1, |
| 230 | + "endIndex": 2 |
| 231 | + } |
| 232 | + } |
| 233 | + ], |
213 | 234 | "name": "CloudEventFunction", |
214 | 235 | "members": [ |
215 | 236 | { |
|
226 | 247 | "text": "CloudEvent", |
227 | 248 | "canonicalReference": "cloudevents!CloudEventV1:interface" |
228 | 249 | }, |
| 250 | + { |
| 251 | + "kind": "Content", |
| 252 | + "text": "<T>" |
| 253 | + }, |
229 | 254 | { |
230 | 255 | "kind": "Content", |
231 | 256 | "text": "): " |
|
240 | 265 | } |
241 | 266 | ], |
242 | 267 | "returnTypeTokenRange": { |
243 | | - "startIndex": 3, |
244 | | - "endIndex": 4 |
| 268 | + "startIndex": 4, |
| 269 | + "endIndex": 5 |
245 | 270 | }, |
246 | 271 | "releaseTag": "Public", |
247 | 272 | "overloadIndex": 1, |
|
250 | 275 | "parameterName": "cloudEvent", |
251 | 276 | "parameterTypeTokenRange": { |
252 | 277 | "startIndex": 1, |
253 | | - "endIndex": 2 |
| 278 | + "endIndex": 3 |
254 | 279 | } |
255 | 280 | } |
256 | 281 | ] |
|
265 | 290 | "excerptTokens": [ |
266 | 291 | { |
267 | 292 | "kind": "Content", |
268 | | - "text": "export declare interface CloudEventFunctionWithCallback " |
| 293 | + "text": "export interface CloudEventFunctionWithCallback<T = " |
| 294 | + }, |
| 295 | + { |
| 296 | + "kind": "Content", |
| 297 | + "text": "unknown" |
| 298 | + }, |
| 299 | + { |
| 300 | + "kind": "Content", |
| 301 | + "text": "> " |
269 | 302 | } |
270 | 303 | ], |
271 | 304 | "releaseTag": "Public", |
| 305 | + "typeParameters": [ |
| 306 | + { |
| 307 | + "typeParameterName": "T", |
| 308 | + "constraintTokenRange": { |
| 309 | + "startIndex": 0, |
| 310 | + "endIndex": 0 |
| 311 | + }, |
| 312 | + "defaultTypeTokenRange": { |
| 313 | + "startIndex": 1, |
| 314 | + "endIndex": 2 |
| 315 | + } |
| 316 | + } |
| 317 | + ], |
272 | 318 | "name": "CloudEventFunctionWithCallback", |
273 | 319 | "members": [ |
274 | 320 | { |
|
285 | 331 | "text": "CloudEvent", |
286 | 332 | "canonicalReference": "cloudevents!CloudEventV1:interface" |
287 | 333 | }, |
| 334 | + { |
| 335 | + "kind": "Content", |
| 336 | + "text": "<T>" |
| 337 | + }, |
288 | 338 | { |
289 | 339 | "kind": "Content", |
290 | 340 | "text": ", callback: " |
|
308 | 358 | } |
309 | 359 | ], |
310 | 360 | "returnTypeTokenRange": { |
311 | | - "startIndex": 5, |
312 | | - "endIndex": 6 |
| 361 | + "startIndex": 6, |
| 362 | + "endIndex": 7 |
313 | 363 | }, |
314 | 364 | "releaseTag": "Public", |
315 | 365 | "overloadIndex": 1, |
|
318 | 368 | "parameterName": "cloudEvent", |
319 | 369 | "parameterTypeTokenRange": { |
320 | 370 | "startIndex": 1, |
321 | | - "endIndex": 2 |
| 371 | + "endIndex": 3 |
322 | 372 | } |
323 | 373 | }, |
324 | 374 | { |
325 | 375 | "parameterName": "callback", |
326 | 376 | "parameterTypeTokenRange": { |
327 | | - "startIndex": 3, |
328 | | - "endIndex": 4 |
| 377 | + "startIndex": 4, |
| 378 | + "endIndex": 5 |
329 | 379 | } |
330 | 380 | } |
331 | 381 | ] |
|
340 | 390 | "excerptTokens": [ |
341 | 391 | { |
342 | 392 | "kind": "Content", |
343 | | - "text": "export declare interface CloudFunctionsContext " |
| 393 | + "text": "export interface CloudFunctionsContext " |
344 | 394 | } |
345 | 395 | ], |
346 | 396 | "releaseTag": "Public", |
|
476 | 526 | "text": "CloudEvent", |
477 | 527 | "canonicalReference": "cloudevents!CloudEventV1:interface" |
478 | 528 | }, |
| 529 | + { |
| 530 | + "kind": "Content", |
| 531 | + "text": "<unknown>" |
| 532 | + }, |
479 | 533 | { |
480 | 534 | "kind": "Content", |
481 | 535 | "text": ";" |
|
485 | 539 | "name": "Context", |
486 | 540 | "typeTokenRange": { |
487 | 541 | "startIndex": 1, |
488 | | - "endIndex": 4 |
| 542 | + "endIndex": 5 |
489 | 543 | } |
490 | 544 | }, |
491 | 545 | { |
|
495 | 549 | "excerptTokens": [ |
496 | 550 | { |
497 | 551 | "kind": "Content", |
498 | | - "text": "export declare interface Data " |
| 552 | + "text": "export interface Data " |
499 | 553 | } |
500 | 554 | ], |
501 | 555 | "releaseTag": "Public", |
|
537 | 591 | "excerptTokens": [ |
538 | 592 | { |
539 | 593 | "kind": "Content", |
540 | | - "text": "export declare interface EventFunction " |
| 594 | + "text": "export interface EventFunction " |
541 | 595 | } |
542 | 596 | ], |
543 | 597 | "releaseTag": "Public", |
|
611 | 665 | "excerptTokens": [ |
612 | 666 | { |
613 | 667 | "kind": "Content", |
614 | | - "text": "export declare interface EventFunctionWithCallback " |
| 668 | + "text": "export interface EventFunctionWithCallback " |
615 | 669 | } |
616 | 670 | ], |
617 | 671 | "releaseTag": "Public", |
|
701 | 755 | "excerptTokens": [ |
702 | 756 | { |
703 | 757 | "kind": "Content", |
704 | | - "text": "export declare type HandlerFunction = " |
| 758 | + "text": "export declare type HandlerFunction<T = " |
| 759 | + }, |
| 760 | + { |
| 761 | + "kind": "Content", |
| 762 | + "text": "unknown" |
| 763 | + }, |
| 764 | + { |
| 765 | + "kind": "Content", |
| 766 | + "text": "> = " |
705 | 767 | }, |
706 | 768 | { |
707 | 769 | "kind": "Reference", |
|
737 | 799 | }, |
738 | 800 | { |
739 | 801 | "kind": "Content", |
740 | | - "text": " | " |
| 802 | + "text": "<T> | " |
741 | 803 | }, |
742 | 804 | { |
743 | 805 | "kind": "Reference", |
744 | 806 | "text": "CloudEventFunctionWithCallback", |
745 | 807 | "canonicalReference": "@google-cloud/functions-framework!CloudEventFunctionWithCallback:interface" |
746 | 808 | }, |
| 809 | + { |
| 810 | + "kind": "Content", |
| 811 | + "text": "<T>" |
| 812 | + }, |
747 | 813 | { |
748 | 814 | "kind": "Content", |
749 | 815 | "text": ";" |
750 | 816 | } |
751 | 817 | ], |
752 | 818 | "releaseTag": "Public", |
753 | 819 | "name": "HandlerFunction", |
| 820 | + "typeParameters": [ |
| 821 | + { |
| 822 | + "typeParameterName": "T", |
| 823 | + "constraintTokenRange": { |
| 824 | + "startIndex": 0, |
| 825 | + "endIndex": 0 |
| 826 | + }, |
| 827 | + "defaultTypeTokenRange": { |
| 828 | + "startIndex": 1, |
| 829 | + "endIndex": 2 |
| 830 | + } |
| 831 | + } |
| 832 | + ], |
754 | 833 | "typeTokenRange": { |
755 | | - "startIndex": 1, |
756 | | - "endIndex": 10 |
| 834 | + "startIndex": 3, |
| 835 | + "endIndex": 13 |
757 | 836 | } |
758 | 837 | }, |
759 | 838 | { |
|
793 | 872 | "excerptTokens": [ |
794 | 873 | { |
795 | 874 | "kind": "Content", |
796 | | - "text": "export declare interface HttpFunction " |
| 875 | + "text": "export interface HttpFunction " |
797 | 876 | } |
798 | 877 | ], |
799 | 878 | "releaseTag": "Public", |
|
810 | 889 | }, |
811 | 890 | { |
812 | 891 | "kind": "Reference", |
813 | | - "text": "Request_2", |
814 | | - "canonicalReference": "@google-cloud/functions-framework!~Request_2:interface" |
| 892 | + "text": "Request", |
| 893 | + "canonicalReference": "@google-cloud/functions-framework!Request:interface" |
815 | 894 | }, |
816 | 895 | { |
817 | 896 | "kind": "Content", |
818 | 897 | "text": ", res: " |
819 | 898 | }, |
820 | 899 | { |
821 | 900 | "kind": "Reference", |
822 | | - "text": "Response_2", |
823 | | - "canonicalReference": "@google-cloud/functions-framework!~Response_2:type" |
| 901 | + "text": "Response", |
| 902 | + "canonicalReference": "@types/express!~e.Response:interface" |
824 | 903 | }, |
825 | 904 | { |
826 | 905 | "kind": "Content", |
|
903 | 982 | "excerptTokens": [ |
904 | 983 | { |
905 | 984 | "kind": "Content", |
906 | | - "text": "export declare interface LegacyEvent " |
| 985 | + "text": "export interface LegacyEvent " |
907 | 986 | } |
908 | 987 | ], |
909 | 988 | "releaseTag": "Public", |
|
972 | 1051 | "excerptTokens": [ |
973 | 1052 | { |
974 | 1053 | "kind": "Content", |
975 | | - "text": "declare interface Request_2 extends " |
| 1054 | + "text": "export interface Request extends " |
976 | 1055 | }, |
977 | 1056 | { |
978 | 1057 | "kind": "Reference", |
979 | | - "text": "express.Request", |
| 1058 | + "text": "ExpressRequest", |
980 | 1059 | "canonicalReference": "@types/express!~e.Request:interface" |
981 | 1060 | }, |
982 | 1061 | { |
|
1021 | 1100 | "endIndex": 3 |
1022 | 1101 | } |
1023 | 1102 | ] |
1024 | | - }, |
1025 | | - { |
1026 | | - "kind": "TypeAlias", |
1027 | | - "canonicalReference": "@google-cloud/functions-framework!Response_2:type", |
1028 | | - "docComment": "/**\n * @public\n */\n", |
1029 | | - "excerptTokens": [ |
1030 | | - { |
1031 | | - "kind": "Content", |
1032 | | - "text": "declare type Response_2 = " |
1033 | | - }, |
1034 | | - { |
1035 | | - "kind": "Reference", |
1036 | | - "text": "express.Response", |
1037 | | - "canonicalReference": "@types/express!~e.Response:interface" |
1038 | | - }, |
1039 | | - { |
1040 | | - "kind": "Content", |
1041 | | - "text": ";" |
1042 | | - } |
1043 | | - ], |
1044 | | - "releaseTag": "Public", |
1045 | | - "name": "Response_2", |
1046 | | - "typeTokenRange": { |
1047 | | - "startIndex": 1, |
1048 | | - "endIndex": 2 |
1049 | | - } |
1050 | 1103 | } |
1051 | 1104 | ] |
1052 | 1105 | } |
|
0 commit comments