fix: fix channel.membership type #845
Annotations
10 errors and 1 warning
Run API type definition tests:
test/typescript/data.ts#L28
Type '{ name: string; organization: string; push_notifications: { version: string; offline_only: false; apn: { enabled: false; development: false; notification_template: string; host: string; }; firebase: { ...; }; huawei: { ...; }; xiaomi: { ...; }; providers: ({ ...; } | ... 2 more ... | { ...; })[]; }; ... 33 more ...;...' is not assignable to type '{ call_types: any; channel_configs: Record<string, { reminders: boolean; automod?: ChannelConfigAutomod | undefined; automod_behavior?: ChannelConfigAutomodBehavior | undefined; ... 21 more ...; url_enrichment?: boolean | undefined; }>; ... 38 more ...; webhook_url?: string | undefined; }'.
|
Run API type definition tests:
test/typescript/data.ts#L53
Type '{ id: string; name: string; language: ""; role: string; teams: never[]; created_at: string; updated_at: string; banned: false; online: false; devices: never[]; invisible: false; mutes: never[]; channel_mutes: never[]; ... 5 more ...; gender: string; }' is not assignable to type 'UserResponse<{ attachmentType: {}; channelType: {}; commandType: string & {}; eventType: {}; messageType: {}; reactionType: {}; userType: { gender: string; unique: string; }; pollType: {}; pollOptionType: {}; }>'.
|
Run API type definition tests:
test/typescript/data.ts#L54
Type '{ id: string; name: string; language: ""; role: string; teams: never[]; created_at: string; updated_at: string; banned: false; online: false; devices: never[]; invisible: false; mutes: never[]; channel_mutes: never[]; ... 5 more ...; unique: string; }' is not assignable to type 'UserResponse<{ attachmentType: {}; channelType: {}; commandType: string & {}; eventType: {}; messageType: {}; reactionType: {}; userType: { gender: string; unique: string; work?: string | undefined; }; pollType: {}; pollOptionType: {}; }>'.
|
Run API type definition tests:
test/typescript/data.ts#L54
Type '{ id: string; name: string; language: ""; role: string; teams: never[]; created_at: string; updated_at: string; banned: false; online: false; devices: never[]; invisible: false; mutes: never[]; channel_mutes: never[]; ... 5 more ...; unique: string; }' is not assignable to type 'UserResponse<{ attachmentType: {}; channelType: {}; commandType: string & {}; eventType: {}; messageType: {}; reactionType: {}; userType: { gender: string; unique: string; work?: string | undefined; }; pollType: {}; pollOptionType: {}; }>'.
|
Run API type definition tests:
test/typescript/data.ts#L54
Type '{ id: string; name: string; language: ""; role: string; teams: never[]; created_at: string; updated_at: string; banned: false; online: false; devices: never[]; invisible: false; mutes: never[]; channel_mutes: never[]; ... 6 more ...; unique: string; }' is not assignable to type 'UserResponse<{ attachmentType: {}; channelType: {}; commandType: string & {}; eventType: {}; messageType: {}; reactionType: {}; userType: { gender: string; unique: string; work?: string | undefined; }; pollType: {}; pollOptionType: {}; }>'.
|
Run API type definition tests:
test/typescript/data.ts#L57
Type '{ id: string; language: ""; role: string; teams: never[]; created_at: string; updated_at: string; banned: false; online: true; devices: never[]; invisible: false; mutes: never[]; channel_mutes: never[]; total_unread_count: number; unread_channels: number; unread_threads: number; shadow_banned: false; nickname: strin...' is not assignable to type 'UserResponse<{ attachmentType: {}; channelType: {}; commandType: string & {}; eventType: {}; messageType: {}; reactionType: {}; userType: { nickname?: string | undefined; }; pollType: {}; pollOptionType: {}; }>'.
|
Run API type definition tests:
test/typescript/data.ts#L57
Type '{ id: string; language: ""; role: string; teams: never[]; created_at: string; updated_at: string; banned: false; online: false; devices: never[]; invisible: null; mutes: never[]; channel_mutes: never[]; total_unread_count: number; unread_channels: number; unread_threads: number; shadow_banned: false; nickname: strin...' is not assignable to type 'UserResponse<{ attachmentType: {}; channelType: {}; commandType: string & {}; eventType: {}; messageType: {}; reactionType: {}; userType: { nickname?: string | undefined; }; pollType: {}; pollOptionType: {}; }>'.
|
Run API type definition tests:
test/typescript/data.ts#L87
Type '{ id: string; name: string; language: ""; role: string; teams: never[]; created_at: string; updated_at: string; banned: false; online: false; devices: never[]; invisible: false; mutes: never[]; channel_mutes: never[]; ... 4 more ...; unique: string; }' is not assignable to type 'UserResponse<{ attachmentType: {}; channelType: {}; commandType: string & {}; eventType: {}; messageType: {}; reactionType: {}; userType: { unique: string; }; pollType: {}; pollOptionType: {}; }>'.
|
Run API type definition tests:
test/typescript/data.ts#L87
Type '{ id: string; name: string; language: ""; role: string; teams: never[]; created_at: string; updated_at: string; banned: false; online: false; devices: never[]; invisible: false; mutes: never[]; channel_mutes: never[]; ... 4 more ...; unique: string; }' is not assignable to type 'UserResponse<{ attachmentType: {}; channelType: {}; commandType: string & {}; eventType: {}; messageType: {}; reactionType: {}; userType: { unique: string; }; pollType: {}; pollOptionType: {}; }>'.
|
Run API type definition tests:
test/typescript/data.ts#L87
Type '{ id: string; name: string; language: ""; role: string; teams: never[]; created_at: string; updated_at: string; banned: false; online: false; devices: never[]; invisible: false; mutes: never[]; channel_mutes: never[]; ... 4 more ...; unique: string; }' is not assignable to type 'UserResponse<{ attachmentType: {}; channelType: {}; commandType: string & {}; eventType: {}; messageType: {}; reactionType: {}; userType: { unique: string; }; pollType: {}; pollOptionType: {}; }>'.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading