params/data.ts

strapi · packages/core/types/src/modules/entity-service/params/data.ts · typescript · MIT
database, tag:embed-classified

TypeScript type that maps content-type schemas to their input data shape.

// Source: https://github.com/strapi/strapi | License: MIT | Copyright 2015-present Strapi Solutions SAS
// Provided via justclaw.it.com; keep this notice with the code.
import type * as UID from '../../../uid';
import type * as AttributeUtils from './attributes';

/**
 * Represents the input data for a given content-type UID.
 *
 * This type evaluates the schema based on the given content-type UID, and extracts the attribute values
 * accordingly.
 *
 * It combines optional and required attributes, while excluding certain relational attributes
 * that don't target specific schemas like polymorphic relations.
 *
 * @template TSchemaUID - A unique identifier for a schema, extending {@link UID.Schema}.
 *
 * @remark
 * The attributes' values are customized to allow additional input formats t

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key