refactor(editor): Fix remaining FE type check errors (no-changelog) (#9607)
Co-authored-by: Alex Grozav <alex@grozav.com>
This commit is contained in:
@@ -31,7 +31,7 @@ export async function deleteDestinationFromDb(context: IRestApiContext, destinat
|
||||
export async function sendTestMessageToDestination(
|
||||
context: IRestApiContext,
|
||||
destination: ApiMessageEventBusDestinationOptions,
|
||||
) {
|
||||
): Promise<boolean> {
|
||||
const data: IDataObject = {
|
||||
...destination,
|
||||
};
|
||||
|
||||
@@ -5,9 +5,9 @@ import type {
|
||||
INodePropertyOptions,
|
||||
INodeTypeDescription,
|
||||
INodeTypeNameVersion,
|
||||
ResourceMapperFields,
|
||||
} from 'n8n-workflow';
|
||||
import axios from 'axios';
|
||||
import type { ResourceMapperFields } from 'n8n-workflow/src/Interfaces';
|
||||
|
||||
export async function getNodeTypes(baseUrl: string) {
|
||||
const { data } = await axios.get(baseUrl + 'types/nodes.json', { withCredentials: true });
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
} from '@/Interface';
|
||||
import { get } from '@/utils/apiUtils';
|
||||
|
||||
function stringifyArray(arr: number[]) {
|
||||
function stringifyArray(arr: string[]) {
|
||||
return arr.join(',');
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ export async function getCollections(
|
||||
|
||||
export async function getWorkflows(
|
||||
apiEndpoint: string,
|
||||
query: { page: number; limit: number; categories: number[]; search: string },
|
||||
query: { page: number; limit: number; categories: string[]; search: string },
|
||||
headers?: RawAxiosRequestHeaders,
|
||||
): Promise<{
|
||||
totalWorkflows: number;
|
||||
|
||||
Reference in New Issue
Block a user