#Types don't seem to work for me.

1 messages · Page 1 of 1 (latest)

stray wharf
#

I'm not getting any types when using the TypeScript sdk. The robot.d.ts file is pointing at a /robot folder that doesn't exist.

#

Some types do work

high narwhal
#

Thank you for flagging this! @crude crypt can you assist?

lunar lake
#

Hi! We are flagging this internally. @umbral wyvern or @radiant kite , any thoughts?

radiant kite
#

Hello, I will take a look t his afternoon, @stray wharf what ide are you using?

stray wharf
#

vscode

#

as you can see in robot.d.ts it's referring to a /robot folder for all the imports, and that folder does not exist

stray wharf
#

Also while I'm here, it seems the TypeScript library is missing a servo component, is that correct or am I crazy?

crude crypt
#

Hey Perry,

For the board component, can you confirm that you are importing it?

import {BoardClient} from '@viamrobotics/sdk'

As for servo, we don't have a wrapper yet but you can access servo methods directly from the gRPC protos

umbral wyvern
#

Hi Perry, the missing types are indeed a bug on our end - we will fix and push a new version shortly

umbral wyvern
#

@stray wharf the update is live - please install @viamrobotics/[email protected] and all of the robot type definitions should be available

stray wharf
#

Yes, that worked!

#

I assume this type is wrong:

interface ICEServer {
    urls: string;
    username: string;
    credential: string;
}
#

cause now I'm getting a type error I wasn't getting before

umbral wyvern
#

ugh, yes - pushed too fast. let me verify that all of the examples are still valid and update any interfaces. sorry again for the inconvenience