@bilberrry/strapi-plugin-link-finder
Version:
A custom field for Strapi, allowing you find URLs.
20 lines (14 loc) • 525 B
text/typescript
import { MessageDescriptor } from 'react-intl';
export type OptionType = {
value: string;
label: string;
entry: { id: number; title: string; url: string };
};
export type LinkFinderProps = {
name: string;
description?: MessageDescriptor;
disabled?: boolean;
};
export type FindResponse = { data: { contentTypeUid: string; id: number; title: string; url: string }[] };
export type ConfigType = { form: { titleField: string; urlField: string } };
export type ConfigResponse = { data: { config: ConfigType } };