structured-render - v1.2.0
    Preparing search index...

    Function createStructuredRenderSection

    • Used to create a new structured render section with common properties. Not all sections use this, but most do.

      Type Parameters

      • const Type extends string
      • ExtraProperties extends AnyObject

      Parameters

      Returns Shape<
          {
              sectionTitle: Shape<
                  TOptional<TUnion<(TUndefined | TNull | TString)[]>>,
              >;
              sources: Shape<
                  TOptional<
                      TUnion<(TUndefined | TNull | TArray<TOptional<TUnion<(...)>>>)[]>,
                  >,
              >;
              type: Shape<TUnsafe<Type>>;
          } & ExtraProperties,
      >