Skip to content

Commit

Permalink
remove some unused exports
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Nov 22, 2022
1 parent 8842877 commit 62dd52c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 18 deletions.
6 changes: 0 additions & 6 deletions packages/cli/src/UserManagement/Interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Application } from 'express';
import { JwtFromRequestFunction } from 'passport-jwt';
import type { ActiveWorkflowRunner } from '@/ActiveWorkflowRunner';
import type { IExternalHooksClass, IPersonalizationSurveyAnswers } from '@/Interfaces';

Expand All @@ -8,11 +7,6 @@ export interface JwtToken {
expiresIn: number;
}

export interface JwtOptions {
secretOrKey: string;
jwtFromRequest: JwtFromRequestFunction;
}

export interface JwtPayload {
id: string;
email: string | null;
Expand Down
6 changes: 2 additions & 4 deletions packages/cli/src/WorkflowExecuteAdditionalData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -880,10 +880,8 @@ export async function getWorkflowData(

/**
* Executes the workflow with the given ID
*
* @param {string} workflowId The id of the workflow to execute
*/
export async function executeWorkflow(
async function executeWorkflow(
workflowInfo: IExecuteWorkflowInfo,
additionalData: IWorkflowExecuteAdditionalData,
options?: {
Expand Down Expand Up @@ -1111,7 +1109,7 @@ export async function getBase(
* Returns WorkflowHooks instance for running integrated workflows
* (Workflows which get started inside of another workflow)
*/
export function getWorkflowHooksIntegrated(
function getWorkflowHooksIntegrated(
mode: WorkflowExecuteMode,
executionId: string,
workflowData: IWorkflowBase,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/WorkflowRunnerProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { generateFailedExecutionFromError } from '@/WorkflowHelpers';
import { initErrorHandling } from '@/ErrorReporting';
import { PermissionChecker } from '@/UserManagement/PermissionChecker';

export class WorkflowRunnerProcess {
class WorkflowRunnerProcess {
data: IWorkflowExecutionDataProcessWithExecution | undefined;

logger: ILogger;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/databases/entities/Settings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { IDataObject } from 'n8n-workflow';
import { Column, Entity, PrimaryColumn } from 'typeorm';

export interface ISettingsDb {
interface ISettingsDb {
key: string;
value: string | boolean | IDataObject | number;
loadOnStartup: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/databases/utils/migrationHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function logMigrationEnd(
}, 100);
}

export function batchQuery(query: string, limit: number, offset = 0): string {
function batchQuery(query: string, limit: number, offset = 0): string {
return `
${query}
LIMIT ${limit}
Expand Down
6 changes: 2 additions & 4 deletions packages/workflow/src/NodeHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,7 @@ export function getContext(
* Returns which parameters are dependent on which
*
*/
export function getParamterDependencies(
nodePropertiesArray: INodeProperties[],
): IParameterDependencies {
function getParameterDependencies(nodePropertiesArray: INodeProperties[]): IParameterDependencies {
const dependencies: IParameterDependencies = {};

for (const nodeProperties of nodePropertiesArray) {
Expand Down Expand Up @@ -548,7 +546,7 @@ export function getNodeParameters(
parameterDependencies?: IParameterDependencies,
): INodeParameters | null {
if (parameterDependencies === undefined) {
parameterDependencies = getParamterDependencies(nodePropertiesArray);
parameterDependencies = getParameterDependencies(nodePropertiesArray);
}

// Get the parameter names which get used multiple times as for this
Expand Down
2 changes: 1 addition & 1 deletion packages/workflow/src/ObservableObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* eslint-disable no-underscore-dangle */
import { IDataObject, IObservableObject } from './Interfaces';

export interface IObservableOptions {
interface IObservableOptions {
ignoreEmptyOnFirstChild?: boolean;
}

Expand Down

0 comments on commit 62dd52c

Please sign in to comment.