Function createUcBundle

  • Creates new bundle with schema processing code.

    Bundle may include code of several schema processors (e.g. serializers and deserializers). For that, the processors has to refer the bundle.

    Parameters

    Returns UcBundle

    New bundle representation.

    Example

    const myBundle = createUcBundle({ dist: 'my-bundle.js' });
    const readValue = createUcDeserializer(mySchema, { bundle: myBundle });
    const writeValue = createUcSerializer(mySchema, { bundle: myBundle });

    This is a placeholder. It is not processed in any way at run time. The actual bundle generated when TypeScript code compiled with [ts-transformer-churi] enabled. It is expected that the result of this function call is stored to constant.

Generated using TypeDoc