Hiyve Components - v1.0.0
    Preparing search index...
    • Merge custom resource viewer types with the defaults.

      Parameters

      • Optionalcustom: { add?: string[]; remove?: string[]; replace?: string[] }

        Optional overrides: add appends types, remove removes types, replace replaces entirely

      Returns ReadonlySet<string>

      A new Set of resource types that have inline viewers

      // Add a custom type
      mergeResourceViewerTypes({ add: ['my-custom-type'] });

      // Remove a default type so it routes to tab switching instead
      mergeResourceViewerTypes({ remove: ['room-summary'] });

      // Replace entirely
      mergeResourceViewerTypes({ replace: ['image', 'video'] });