I'm getting this error:
src/main.ts:23:24 - error TS1362: 'SortDirection' cannot be used as a value because it was exported using 'export type'.
23 sortDirection: SortDirection.Desc,
~~~~~~~~~~~~~
node_modules/@zoralabs/zdk/dist/types.d.ts:1:138
1 export type { AggregateAttributesQueryVariables, CollectionSortKey, CollectionSortKeySortInput, CollectionsQuery, CollectionsQueryInput, SortDirection, TokenInput, TokenSortKey, TokensQuery, SalesVolumeQueryVariables, OwnersByCountQueryVariables, TokensQueryFilter, TokensQueryInput, } from './queries/queries-sdk';
~~~~~~~~~~~~~
'SortDirection' was exported here.
I'm importing using this:
import { SortDirection } from "@zoralabs/zdk";
In internet, I read that compiler error is produced when you do import type { SortDirection } from "@zoralabs/zdk";, but I'm not doing that.
Instead the library I'm consuming has export type... so I think that may be the issue, but then I'm not sure what can I do as a workaround, as writing the (string) enum values directly gives compiler error.