Function bootstrap

Bootstraps the GlobalHeaderClient by loading it from the specified entry URL.

import { bootstrap } from '@govflanders/vl-widget-global-header-types';

const url = 'https://widgets.vlaanderen.be/api/v2/widget/your-widget-id/entry';
const client = await bootstrap(url);
// Use the GlobalHeaderClient instance
const config = await client.getConfig();