Skip to content

Commit

Permalink
fix refs to combined type utils/helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj committed Oct 2, 2024
1 parent 5a3bbe1 commit 43cd789
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Logger, LogLevel, ConsoleLogger } from '@slack/logger';
import axios, { AxiosInstance, AxiosResponse } from 'axios';
import SocketModeReceiver from './receivers/SocketModeReceiver';
import HTTPReceiver, { HTTPReceiverOptions } from './receivers/HTTPReceiver';
import { isRejected } from './types/utilities';
import { isRejected, StringIndexed } from './types/utilities';
import {
ignoreSelf as ignoreSelfMiddleware,
onlyActions,
Expand Down Expand Up @@ -60,7 +60,6 @@ import {
import { IncomingEventType, getTypeAndConversation, assertNever, isBodyWithTypeEnterpriseInstall, isEventTypeToSkipAuthorize } from './helpers';
import { CodedError, asCodedError, AppInitializationError, MultipleListenerError, ErrorCode, InvalidCustomPropertyError } from './errors';
import { AllMiddlewareArgs, contextBuiltinKeys } from './types/middleware';
import { StringIndexed } from './types/helpers';
import { FunctionCompleteFn, FunctionFailFn, CustomFunction, CustomFunctionMiddleware } from './CustomFunction';
// eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-commonjs
const packageJson = require('../package.json'); // eslint-disable-line @typescript-eslint/no-var-requires
Expand Down
2 changes: 1 addition & 1 deletion src/receivers/AwsLambdaReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tsscmp from 'tsscmp';
import App from '../App';
import { Receiver, ReceiverEvent } from '../types/receiver';
import { ReceiverMultipleAckError } from '../errors';
import { StringIndexed } from '../types/helpers';
import { StringIndexed } from '../types/utilities';

export type AwsEvent = AwsEventV1 | AwsEventV2;
type AwsEventStringParameters = Record<string, string | undefined>;
Expand Down
2 changes: 1 addition & 1 deletion src/receivers/ExpressReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from '../errors';
import { AnyMiddlewareArgs, Receiver, ReceiverEvent } from '../types';
import { verifyRedirectOpts } from './verify-redirect-opts';
import { StringIndexed } from '../types/helpers';
import { StringIndexed } from '../types/utilities';
import { HTTPModuleFunctions as httpFunc, ReceiverDispatchErrorHandlerArgs, ReceiverProcessEventErrorHandlerArgs, ReceiverUnhandledRequestHandlerArgs } from './HTTPModuleFunctions';
import { HTTPResponseAck } from './HTTPResponseAck';

Expand Down
2 changes: 1 addition & 1 deletion src/receivers/HTTPReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
CodedError,
} from '../errors';
import { CustomRoute, buildReceiverRoutes, ReceiverRoutes } from './custom-routes';
import { StringIndexed } from '../types/helpers';
import { StringIndexed } from '../types/utilities';
import { BufferedIncomingMessage } from './BufferedIncomingMessage';
import {
HTTPModuleFunctions as httpFunc,
Expand Down
2 changes: 1 addition & 1 deletion src/receivers/SocketModeReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ParamsIncomingMessage } from './ParamsIncomingMessage';
import App from '../App';
import { CodedError } from '../errors';
import { Receiver, ReceiverEvent } from '../types';
import { StringIndexed } from '../types/helpers';
import { StringIndexed } from '../types/utilities';
import { buildReceiverRoutes, ReceiverRoutes } from './custom-routes';
import { verifyRedirectOpts } from './verify-redirect-opts';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/types/actions/block-action.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PlainTextElement, Confirmation, Option, RichTextBlock } from '@slack/types';
import { StringIndexed } from '../helpers';
import { StringIndexed } from '../utilities';
import { ViewOutput, ViewStateValue } from '../view';

/**
Expand Down
3 changes: 1 addition & 2 deletions src/types/command/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StringIndexed } from '../helpers';
import { SayFn, RespondFn, RespondArguments, AckFn } from '../utilities';
import { StringIndexed, SayFn, RespondFn, RespondArguments, AckFn } from '../utilities';

/**
* Arguments which listeners and middleware receive to process a slash command from Slack.
Expand Down
3 changes: 1 addition & 2 deletions src/types/events/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { SlackEvent } from '@slack/types';
import { StringIndexed } from '../helpers';
import { SayFn } from '../utilities';
import { StringIndexed, SayFn } from '../utilities';

/**
* Arguments which listeners and middleware receive to process an event from Slack's Events API.
Expand Down
2 changes: 1 addition & 1 deletion src/types/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { WebClient } from '@slack/web-api';
import { Logger } from '@slack/logger';
import { StringIndexed } from './helpers';
import { StringIndexed } from './utilities';
import { FunctionInputs, SlackEventMiddlewareArgs } from './events';
import { SlackActionMiddlewareArgs } from './actions';
import { SlackCommandMiddlewareArgs } from './command';
Expand Down
3 changes: 1 addition & 2 deletions src/types/options/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Option, PlainTextElement } from '@slack/types';
import { StringIndexed, XOR } from '../helpers';
import { AckFn } from '../utilities';
import { StringIndexed, XOR, AckFn } from '../utilities';
import { ViewOutput } from '../view/index';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/types/receiver.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import App from '../App';
import { AckFn } from './index';
import { StringIndexed } from './helpers';
import { StringIndexed } from './utilities';

export interface ReceiverEvent {
// Parsed HTTP request body / Socket Mode message body
Expand Down

0 comments on commit 43cd789

Please sign in to comment.