Function useContentOptions

  • Get the typed options for the given config.

    You need to have run the little type generator on your config.json.

    NOTE: Nothing is validated for now. Cross your fingers.

    Type Parameters

    Parameters

    • contentOptions: readonly ({
          id: number;
          kind: string;
          name: string;
      } & {
          fileId?: null | number;
          mediaItem?: null | {
              id: number;
              kind: string;
              name: string;
          } & ({ readonly file?: { readonly id: number; } | null | undefined; });
          value?: unknown;
      })[]

      The contentOptions from FC.ClientInitEvent

    Returns ContentOptions<T>

    An object of typed options by option name

Generated using TypeDoc