Skip to content

Commit 5057c07

Browse files
committed
add type to context variable in server helper file
Signed-off-by: Jackie Han <jkhanjob@gmail.com>
1 parent 6d8bd5b commit 5057c07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/utils/helpers.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { MIN_IN_MILLI_SECS } from './constants';
2323
import {
2424
LegacyCallAPIOptions,
2525
OpenSearchDashboardsRequest,
26+
RequestHandlerContext,
2627
} from '../../../../src/core/server';
2728

2829
export const SHOW_DECIMAL_NUMBER_THRESHOLD = 0.01;
@@ -87,7 +88,7 @@ export const prettifyErrorMessage = (rawErrorMessage: string) => {
8788
};
8889

8990
export function getClientBasedOnDataSource(
90-
context: any,
91+
context: RequestHandlerContext,
9192
dataSourceEnabled: boolean,
9293
request: OpenSearchDashboardsRequest,
9394
dataSourceId: string,

0 commit comments

Comments
 (0)