getFrontendData | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function getFrontendData

    Get data exported by the response

    The type of data to get

    The data object of data to get

    If true, return null if the data object is missing. Otherwise throw an error

     declare module "@webhare/frontend" {
    interface FrontendDataTypes {
    "mymodule:type": {
    test: number;
    };
    }
    }

    const data = getFrontendData("mymodule:type");
    • Type Parameters

      • Type extends keyof FrontendDataTypes

      Parameters

      • type: Type
      • options: { allowMissing: true }

      Returns null | FrontendDataTypes[Type]

    • Type Parameters

      • Type extends keyof FrontendDataTypes

      Parameters

      • type: Type
      • Optionaloptions: { allowMissing: boolean }

      Returns FrontendDataTypes[Type]