Skip to content

Generic type support for executeAction

Compare
Choose a tag to compare
@nsteenbeek nsteenbeek released this 08 Oct 15:08
· 280 commits to master since this release

Generic type support for executeAction makes the strange unknown parsing not needed.

const result = await WebApi.executeAction('FindLocation', locationData) as unknown as FindLocationResult; // Before
const result = await WebApi.executeAction('FindLocation', locationData) as FindLocationResult; // Now