File tree Expand file tree Collapse file tree 2 files changed +55
-12
lines changed Expand file tree Collapse file tree 2 files changed +55
-12
lines changed Original file line number Diff line number Diff line change 1522
1522
"kind" : " Content" ,
1523
1523
"text" : " metadata?: "
1524
1524
},
1525
+ {
1526
+ "kind" : " Reference" ,
1527
+ "text" : " Record" ,
1528
+ "canonicalReference" : " !Record:type"
1529
+ },
1525
1530
{
1526
1531
"kind" : " Content" ,
1527
- "text" : " { \n [key: string]: string; \n } "
1532
+ "text" : " < string, string> "
1528
1533
},
1529
1534
{
1530
1535
"kind" : " Content" ,
1536
1541
"name" : " metadata" ,
1537
1542
"propertyTypeTokenRange" : {
1538
1543
"startIndex" : 1 ,
1539
- "endIndex" : 2
1544
+ "endIndex" : 3
1540
1545
}
1541
1546
},
1542
1547
{
1724
1729
},
1725
1730
{
1726
1731
"kind" : " Content" ,
1727
- "text" : " keyof typeof "
1732
+ "text" : " `${"
1733
+ },
1734
+ {
1735
+ "kind" : " Reference" ,
1736
+ "text" : " RuntimeType" ,
1737
+ "canonicalReference" : " @openfunction/functions-framework!RuntimeType:enum"
1738
+ },
1739
+ {
1740
+ "kind" : " Content" ,
1741
+ "text" : " }` | `${"
1742
+ },
1743
+ {
1744
+ "kind" : " Reference" ,
1745
+ "text" : " Capitalize" ,
1746
+ "canonicalReference" : " !Capitalize:type"
1747
+ },
1748
+ {
1749
+ "kind" : " Content" ,
1750
+ "text" : " <"
1728
1751
},
1729
1752
{
1730
1753
"kind" : " Reference" ,
1731
1754
"text" : " RuntimeType" ,
1732
1755
"canonicalReference" : " @openfunction/functions-framework!RuntimeType:enum"
1733
1756
},
1757
+ {
1758
+ "kind" : " Content" ,
1759
+ "text" : " >}` | `${"
1760
+ },
1761
+ {
1762
+ "kind" : " Reference" ,
1763
+ "text" : " Uppercase" ,
1764
+ "canonicalReference" : " !Uppercase:type"
1765
+ },
1766
+ {
1767
+ "kind" : " Content" ,
1768
+ "text" : " <"
1769
+ },
1770
+ {
1771
+ "kind" : " Reference" ,
1772
+ "text" : " RuntimeType" ,
1773
+ "canonicalReference" : " @openfunction/functions-framework!RuntimeType:enum"
1774
+ },
1775
+ {
1776
+ "kind" : " Content" ,
1777
+ "text" : " >}`"
1778
+ },
1734
1779
{
1735
1780
"kind" : " Content" ,
1736
1781
"text" : " ;"
1741
1786
"name" : " runtime" ,
1742
1787
"propertyTypeTokenRange" : {
1743
1788
"startIndex" : 1 ,
1744
- "endIndex" : 3
1789
+ "endIndex" : 12
1745
1790
}
1746
1791
},
1747
1792
{
1854
1899
},
1855
1900
{
1856
1901
"kind" : " Content" ,
1857
- "text" : " \" Async \" "
1902
+ "text" : " \" async \" "
1858
1903
}
1859
1904
],
1860
1905
"releaseTag" : " Public" ,
1875
1920
},
1876
1921
{
1877
1922
"kind" : " Content" ,
1878
- "text" : " \" Knative \" "
1923
+ "text" : " \" knative \" "
1879
1924
}
1880
1925
],
1881
1926
"releaseTag" : " Public" ,
Original file line number Diff line number Diff line change @@ -114,9 +114,7 @@ export interface OpenFunctionBinding {
114
114
export interface OpenFunctionComponent {
115
115
componentName: string ;
116
116
componentType: ` ${ComponentType }.${string } ` ;
117
- metadata? : {
118
- [key : string ]: string ;
119
- };
117
+ metadata? : Record <string , string >;
120
118
operation? : string ;
121
119
uri? : string ;
122
120
}
@@ -127,7 +125,7 @@ export interface OpenFunctionContext {
127
125
name: string ;
128
126
outputs? : OpenFunctionBinding ;
129
127
port? : string ;
130
- runtime: keyof typeof RuntimeType ;
128
+ runtime: ` ${ RuntimeType } ` | ` ${ Capitalize < RuntimeType >} ` | ` ${ Uppercase < RuntimeType >} ` ;
131
129
version: string ;
132
130
}
133
131
@@ -141,8 +139,8 @@ export { Response_2 as Response }
141
139
142
140
// @public
143
141
export enum RuntimeType {
144
- Async = " Async " ,
145
- Knative = " Knative "
142
+ Async = " async " ,
143
+ Knative = " knative "
146
144
}
147
145
148
146
// (No @packageDocumentation comment for this package)
You can’t perform that action at this time.
0 commit comments