Skip to content

Commit 09e7fcb

Browse files
committed
docs: update docs with declarative types
Signed-off-by: Grant Timmerman <timmerman+devrel@google.com>
1 parent a1e287b commit 09e7fcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,13 @@ Learn how to use CloudEvents in this [guide](docs/cloudevents.md).
248248
The Functions Framework also supports an interface that declaritively defines your function signature.
249249
250250
```js
251-
import * as FunctionsFramework from '@google-cloud/functions-framework';
251+
const functions = require('@google-cloud/functions-framework');
252252
253-
FunctionsFramework.http('hello', async (req, res) => {
253+
functions.http('hello', async (req, res) => {
254254
res.send('Hello, World!');
255255
});
256256
257-
FunctionsFramework.cloudevent('ce', async (cloudevent) => {
257+
functions.cloudevent('ce', async (cloudevent) => {
258258
res.send('Hello, CloudEvent!');
259259
});
260260
```

0 commit comments

Comments
 (0)