You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They probably need to be broken now, here's an exerpt from models.ts
xporttypeModelingCmd_type=|'StartPath'|{MovePathPen: {path: ModelingCmdId_type/* The ID of the command which created the path. */;to: Point3d_type/* Where the path's pen should be. */;};}// ...
the union of a string and an object means that user's can't be more specific like
typeMoreSpecificType=ModelingCmd_type['MovePathPen']// not possible
Here are some hacks we're already using in the app to get around this
constcommand: Models['ModelingCmdReq_type']={/*...*/}constcmd: =command.cmdif(typeofcmd!=='string'&&"CameraDragMove"incmd&&this.lossyDataChannel){// do stuff with CameraDragMove cmd}
These are good work around but wouldn't want other users of this lib to have to do trick typescript stuff like this.
The text was updated successfully, but these errors were encountered:
They probably need to be broken now, here's an exerpt from models.ts
the union of a string and an object means that user's can't be more specific like
Here are some hacks we're already using in the app to get around this
and
These are good work around but wouldn't want other users of this lib to have to do trick typescript stuff like this.
The text was updated successfully, but these errors were encountered: