0
的反應,本機fbsdk(v0.3.0)定義FBShareOpenGraphContent.js如何在JavaScript中創建導出類型定義的實例?
export type ShareOpenGraphContent = {
/**
* The type of content to be shared is open graph content.
*/
contentType: 'open-graph',
/**
* Common parameters for share content;
*/
commonParameters?: ShareContentCommonParameters,
/**
* URL for the content being shared.
*/
contentUrl?: string,
/**
* Open Graph Action to be shared.
*/
action: ShareOpenGraphAction,
/**
* Property name that points to the primary Open Graph Object in the action.
*/
previewPropertyName: string,
};
以下類型如何創建ShareOpenGraphContent的實例?