feat: better typing
This commit is contained in:
parent
02e25f4237
commit
63e1ca6ee6
|
|
@ -94,7 +94,7 @@ export class MainMcp {
|
|||
}))
|
||||
),
|
||||
settings: {
|
||||
__type: 'any',
|
||||
__type: 'any' as any,
|
||||
},
|
||||
integration: {
|
||||
id: obj.providerId,
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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: [],
|
||||
|
|
|
|||
|
|
@ -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: [],
|
||||
|
|
|
|||
|
|
@ -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>;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue