Convert getCommunities to TRPC and add additional flags. #26142
Annotations
10 errors and 1 warning
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; metadata: ZodObject<{ name: ZodString; description: ZodString; required_requirements: ZodOptional<ZodNumber>; membership_ttl: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>; requirements: ZodArray<...>; topics: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; ...'.
|
Type '({ payload }: CommandContext<ZodObject<{ id: ZodString; }, "strip", ZodTypeAny, { id: string; }, { id: string; }>>) => Promise<{ groups: { id: number; ... 5 more ...; is_system_managed?: boolean | ... 1 more ... | undefined; }[] | null | undefined; created: false; } | { ...; }>' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; }, "strip", ZodTypeAny, { id: string; }, { id: string; }>, ZodObject<{ groups: ZodArray<ZodObject<{ id: ZodNumber; community_id: ZodString; ... 4 more ...; updated_at: ZodDate; }, "strip", ZodTypeAny, { ...; }, { ...; }>, "many">; created: ZodBoolean; }, "strip", ZodTypeAny,...'.
|
|
|
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; contest_address: ZodString; name: ZodString; image_url: ZodOptional<ZodString>; funding_token_address: ZodOptional<...>; ... 5 more ...; topic_ids: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>, ZodObject<...>>'.
|
|
|
|
Type '{ id: string; chain_node_id: number; name: string; network: ChainNetwork.Ethereum; type: ChainType.Offchain; base: ChainBase.Ethereum; custom_stages: never[]; icon_url: string; active: true; default_symbol: string; custom_domain: string; }' is not assignable to type 'Optional<CommunityAttributes, NullishPropertiesOf<CommunityAttributes>>'.
|
Type '{ id: string; chain_node_id: number; name: string; network: ChainNetwork.Ethereum; type: ChainType.Offchain; base: ChainBase.Ethereum; icon_url: string; active: true; default_symbol: string; custom_domain: string; }' is not assignable to type 'Optional<CommunityAttributes, NullishPropertiesOf<CommunityAttributes>>'.
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "FlakySuiteStatus", "MatureSuiteStatus".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
This job failed
Loading