Notion Helper - v1.3.29
    Preparing search index...

    Function setProp

    • Sets a title property's value.

      Parameters

      • value: Object[]

        The array of Rich Text Objects for the title content.

      Returns Object

      A title property object.

      Notion API will throw an error if title doesn't contain an array of Rich Text object(s) (RTOs). setProp() will convert a string, or array of strings, to an array of Rich Text object(s). On other invalid input, it will throw an error.