Skip to content

Upgraded Object-collection

Choose a tag to compare

@trapcodeio trapcodeio released this 01 Jan 17:55
· 68 commits to master since this release

Updated Xpresser to version 0.26.0
This version includes minor Typescript Related breaking changes regarding the new typed object-collection

Since object-collection is widely used in xpresser you may now need to declare types when accessing object-collection instances.

For example

// This may throw a type error
const name = http.$body.get("name");

// Proper way.
const name: string = http.$body.get("name");

// OR
// Proper way.
const name = http.$body.get<string>("name");