Function: createConnectedLdoDataset
▸ createConnectedLdoDataset\<Plugins
>(plugins
): ConnectedLdoDataset
\<Plugins
>
Creates a ConnectedLdoDataset
Type parameters
Name | Type |
---|---|
Plugins |
extends ConnectedPlugin \<any , any , any , any , any >[] |
Parameters
Name | Type | Description |
---|---|---|
plugins |
Plugins |
An array of plugins for platforms to connect to |
Returns
ConnectedLdoDataset
\<Plugins
>
- A ConnectedLdoDataset
Example
import { createConnectedLdoDataset } from "@ldo/connected";
// At least one plugin needs to be provided to a ConnectedLdoDataset. In this
// example we'll use both the Solid and NextGraph plugins.
import { solidConnectedPlugin } from "@ldo/connected-solid";
import { nextGraphConnectedPlugin } from "@ldo/connected-nextgraph";
// ...
const connectedLdoDataset = createConnectedLdoDataset([
solidConnectedPlugin,
nextGraphConnectedPlugin
]);