Moonlight-io / asteroid-sdk-js

5 stars 3 forks source link

Capability to type response of Neon.doInvoke() #66

Closed rockacola closed 4 years ago

rockacola commented 4 years ago

Neon.doInvoke() response with Promise<DoInvokeConfig>, however DoInvokeConfig is not import'able from neon-js for our reference.

rockacola commented 4 years ago

Consider create a shadow type ourselves.

Alternatively, have a type DoInvokeResponse = any for cleaner code (but doesn't add value to type checking).

rockacola commented 4 years ago

Roll the consideration forward to future release.

rockacola commented 4 years ago

DoInvokeConfig interface can be imported through:

import { DoInvokeConfig } from '@cityofzion/neon-api/lib/funcs/types'
rockacola commented 4 years ago

Complete as per release v0.20.0.