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