feat: better typing

This commit is contained in:
Nevo David 2025-07-07 19:59:09 +07:00
parent 02e25f4237
commit 63e1ca6ee6
5 changed files with 5 additions and 8 deletions

View File

@ -94,7 +94,7 @@ export class MainMcp {
}))
),
settings: {
__type: 'any',
__type: 'any' as any,
},
integration: {
id: obj.providerId,

View File

@ -1,6 +1,6 @@
{
"name": "@postiz/node",
"version": "1.0.4",
"version": "1.0.5",
"description": "The Ultimate social media scheduling tool",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@ -262,8 +262,7 @@ export class AutopostService {
tags: [],
posts: state.integrations.map((i) => ({
settings: {
__type: i.providerIdentifier as 'any',
subtitle: '',
__type: i.providerIdentifier as any,
title: '',
tags: [],
subreddit: [],

View File

@ -948,8 +948,7 @@ export class PostsService {
id: integration.id,
},
settings: {
__type: integration.providerIdentifier as 'any',
subtitle: '',
__type: integration.providerIdentifier as any,
title: '',
tags: [],
subreddit: [],

View File

@ -33,8 +33,7 @@ export type AllProvidersSettings =
| ProviderExtension<'wrapcast', None>
| ProviderExtension<'telegram', None>
| ProviderExtension<'nostr', None>
| ProviderExtension<'vk', None>
| ProviderExtension<'any', any>;
| ProviderExtension<'vk', None>;
type None = NonNullable<unknown>;