Skip to content

Commit

Permalink
any -> unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Jan 29, 2025
1 parent 46ef1db commit 534b866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface EvaluationResult {
type: string | null;
}

const getContent = ({ type, printable }: EvaluationResult): any => {
const getContent = ({ type, printable }: EvaluationResult): unknown => {
if (type === 'Cursor' || type === 'AggregationCursor') {
return getEJSON(printable.documents);
}
Expand All @@ -26,7 +26,7 @@ const getContent = ({ type, printable }: EvaluationResult): any => {
: getEJSON(printable);
};

export const getLanguage = (content: any): 'json' | 'plaintext' => {
export const getLanguage = (content: unknown): 'json' | 'plaintext' => {
if (typeof content === 'object' && content !== null) {
return 'json';
}
Expand Down

0 comments on commit 534b866

Please sign in to comment.