@@ -42,7 +42,7 @@ Checkout the new expressive additions.
4242> There is full example: [ typescript-ex] ( ./examples/typescript-ex )
4343
4444``` ts
45- import Cloudevent , {
45+ import CloudEvent , {
4646 event ,
4747 StructuredHTTPEmitter ,
4848 BinaryHTTPEmitter ,
@@ -51,7 +51,7 @@ import Cloudevent, {
5151 BinaryHTTPReceiver
5252} from ' cloudevents-sdk/v1' ;
5353
54- let myevent: Cloudevent = event ()
54+ let myevent: CloudEvent = event ()
5555 .source (' /source' )
5656 .type (' type' )
5757 .dataContentType (' text/plain' )
@@ -231,7 +231,7 @@ app.post("/", (req, res) => {
231231- ` ext ` : external stuff, e.g, Cloud Events JSONSchema
232232- ` lib/bindings ` : every binding implementation goes here
233233- ` lib/bindings/http ` : every http binding implementation goes here
234- - ` lib/cloudevent.js ` : implementation of Cloudevent , an interface
234+ - ` lib/cloudevent.js ` : implementation of CloudEvent , an interface
235235- ` lib/formats/ ` : every format implementation goes here
236236- ` lib/specs/ ` : every spec implementation goes here
237237
@@ -245,18 +245,18 @@ npm test
245245
246246## The API
247247
248- ### ` Cloudevent ` class
248+ ### ` CloudEvent ` class
249249
250250``` js
251251/*
252252 * Format the payload and return an Object.
253253 */
254- Object Cloudevent .format ()
254+ Object CloudEvent .format ()
255255
256256/*
257257 * Format the payload as String.
258258 */
259- String Cloudevent .toString ()
259+ String CloudEvent .toString ()
260260```
261261
262262### ` Formatter ` classes
@@ -265,12 +265,12 @@ Every formatter class must implement these methods to work properly.
265265
266266``` js
267267/*
268- * Format the Cloudevent payload argument and return an Object.
268+ * Format the CloudEvent payload argument and return an Object.
269269 */
270270Object Formatter .format (Object )
271271
272272/*
273- * Format the Cloudevent payload as String.
273+ * Format the CloudEvent payload as String.
274274 */
275275String Formatter .toString (Object )
276276```
@@ -297,9 +297,9 @@ Every Spec class must implement these methods to work properly.
297297
298298``` js
299299/*
300- * The constructor must receives the Cloudevent type.
300+ * The constructor must receives the CloudEvent type.
301301 */
302- Spec (Cloudevent )
302+ Spec (CloudEvent )
303303
304304/*
305305 * Checks the spec constraints, throwing an error if do not pass.
@@ -320,7 +320,7 @@ Every Binding class must implement these methods to work properly.
320320
321321#### Emitter Binding
322322
323- Following we have the signature for the binding to emit Cloudevents .
323+ Following we have the signature for the binding to emit CloudEvents .
324324
325325``` js
326326/*
@@ -329,14 +329,14 @@ Following we have the signature for the binding to emit Cloudevents.
329329Binding (config)
330330
331331/*
332- * Emits the event using an instance of Cloudevent .
332+ * Emits the event using an instance of CloudEvent .
333333 */
334- Binding .emit (cloudevent )
334+ Binding .emit (cloudEvent )
335335```
336336
337337#### Receiver Binding
338338
339- Following we have the signature for the binding to receive Cloudevents .
339+ Following we have the signature for the binding to receive CloudEvents .
340340
341341``` js
342342/*
@@ -351,9 +351,9 @@ Receiver(config)
351351Receiver .check (Object , Map )
352352
353353/*
354- * Checks and parse as Cloudevent
354+ * Checks and parse as CloudEvent
355355 */
356- Cloudevent Receiver .parse (Object , Map )
356+ CloudEvent Receiver .parse (Object , Map )
357357```
358358
359359> See how to implement the method injection [ here] ( lib/specs/spec_0_1.js#L17 )
0 commit comments