iya-sts
    Preparing search index...

    Variable checkCreateValues

    checkCreateValues: (
        name: string,
        values: unknown[],
    ) => { error?: string; name?: string; values?: string[] } = ...

    Type Declaration

      • (
            name: string,
            values: unknown[],
        ): { error?: string; name?: string; values?: string[] }
      • Checks the values a create would write for one attribute against the editor's rules, and returns them in their normal form.

        Parameters

        • name: string

          the attribute, in any case

        • values: unknown[]

          the values, empty ones already removed

        Returns { error?: string; name?: string; values?: string[] }

        null when the editor does not know the attribute; otherwise { name, values }, or { error } naming what was wrong