UNPKG

@strapi/types

Version:

Shared typescript types for Strapi internal use

18 lines 645 B
import type { Intersect } from '../../../utils'; import type { Attribute } from '../..'; /** * Represents a rich-text Strapi attribute along with its options */ export type RichText = Intersect<[ Attribute.OfType<'richtext'>, Attribute.ConfigurableOption, Attribute.DefaultOption<RichTextValue>, Attribute.MinMaxLengthOption, Attribute.PrivateOption, Attribute.RequiredOption, Attribute.WritableOption, Attribute.VisibleOption ]>; export type RichTextValue = string; export type GetRichTextValue<T extends Attribute.Attribute> = T extends RichText ? RichTextValue : never; //# sourceMappingURL=richtext.d.ts.map