Closed mdroidian closed 1 year ago
mockRoamEnvironment
isn't used much - I'd just ts-ignore it. you probably also could just do, which is prob more correct:
":block/order": action.location.order === "last" ? (parentBlock[":block/children"] || []).length : action.location.order
ActionParams
is meant to be the "separate" Create Block request type. PullBlock is what is usually returned from queries
I'll go with @ts-ignore
I tested pull and pullwatch and only got numbers returned. Probably good to keep it that way.
@dvargas92495 Build Error. Issue with
PullBlock
/ActionParams
type mismatch.Error in
mockRoamEnvironment.ts
I tried just adding
"last"
to Pullblock, but that gave a bunch of other errors, for instance ingetBasicTreeByParentUid
Which makes sense. I image PullBlock doesn't return
"last"
.What is the relationship between
ActionParams
andPullBlock
? Do we create a separateCreateBlock
type?