Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 7949e2b

Browse files
committed
code smell
1 parent 993c501 commit 7949e2b

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/cdm/EditorModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { DatabaseView } from "DatabaseView";
22
import { AllHTMLAttributes, DetailedHTMLProps } from "react";
33

44
export interface MarkdownEditorProps
5-
extends DetailedHTMLProps<AllHTMLAttributes<HTMLTextAreaElement>, any> {
5+
extends DetailedHTMLProps<AllHTMLAttributes<HTMLTextAreaElement>, unknown> {
66
onEnter: (e: KeyboardEvent) => void;
77
onEscape: (e: KeyboardEvent) => void;
88
view: DatabaseView;

src/services/MarkdownRenderService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { getNormalizedPath } from "helpers/VaultManagement";
77
import { CachedMetadata, MarkdownRenderer, setIcon, TFile } from "obsidian";
88
import { Literal } from "obsidian-dataview";
99
import { LOGGER } from "services/Logger";
10-
import * as YAML from 'yaml';
1110

1211
const ILLIGAL_CHARS = /[!"#$%&()*+,.:;<=>?@^`{|}~/[\]\\]/g;
1312
class MarkdownRenderService {

src/typings/dataview.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ declare module 'obsidian' {
77
plugins: {
88
enabledPlugins: Set<string>;
99
plugins: {
10-
[id: string]: any;
10+
[id: string]: unknown;
1111
dataview?: {
1212
api?: DataviewApi;
1313
};
@@ -18,14 +18,14 @@ declare module 'obsidian' {
1818
interface MetadataCache {
1919
on(
2020
name: 'dataview:index-ready',
21-
callback: (api: DataviewApi) => any,
22-
ctx?: any
21+
callback: (api: DataviewApi) => unknown,
22+
ctx?: unknown
2323
): EventRef;
2424

2525
on(
2626
name: 'dataview:metadata-change',
27-
callback: (op: string, file: TFile, oldPath?: string) => any,
28-
ctx?: any
27+
callback: (op: string, file: TFile, oldPath?: string) => unknown,
28+
ctx?: unknown
2929
): EventRef;
3030
}
3131
}

src/typings/obsidian.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ declare module "obsidian" {
2525
* WARNING! not exposed by Obsidian, may break in future.
2626
* @param param
2727
*/
28-
getConfig(param: string): any;
28+
getConfig(param: string): unknown;
2929
}
3030

3131
interface MetadataCache {

0 commit comments

Comments
 (0)