Skip to content

Commit

Permalink
feat(hub-common): added comments
Browse files Browse the repository at this point in the history
affects: @esri/hub-common
  • Loading branch information
drspacemanphd committed Mar 6, 2024
1 parent c9a61b6 commit 9923f7e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ import { IOgcItem } from "./interfaces";
import { IPost } from "../../../discussions";
import { IHubSearchResult } from "../../types";

/**
* This method is responsible for converting an OGC item whose properties
* represent an IPost into an IHubSearchResult. Although some fields do not
* apply, this is being done such that result of a discussion post search
* can automatically be used in a gallery.
* @param ogcItem
* @returns IHubSearchResult
*/
export async function ogcItemToDiscussionPostResult(
ogcItem: IOgcItem
): Promise<IHubSearchResult> {
Expand Down

0 comments on commit 9923f7e

Please sign in to comment.