Rename Field to Property in PropertySuggest

This commit is contained in:
Evan Fiordeliso 2025-07-15 12:08:10 -04:00
parent 5164298bcc
commit f8e544d381
1 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<script module lang="ts"> <script module lang="ts">
export type Field = { export type Property = {
name: string; name: string;
type: string; type: string;
}; };
@ -13,10 +13,10 @@
app: App; app: App;
id: string; id: string;
asString?: boolean; asString?: boolean;
value?: Field | string; value?: Property | string;
accepts?: string[]; accepts?: string[];
disabled?: boolean; disabled?: boolean;
onSelected?: (fieldOrName: Field | string) => void; onSelected?: (propertyOrName: Property | string) => void;
}; };
let { let {
@ -29,7 +29,7 @@
onSelected, onSelected,
}: Props = $props(); }: Props = $props();
let items: Item<Field | string>[] = $state([]); let items: Item<Property | string>[] = $state([]);
async function handleChange(query: string) { async function handleChange(query: string) {
const typesContent = await app.vault.adapter.read( const typesContent = await app.vault.adapter.read(