Zuord Integrate
Zuord Integrate is used to produce a new version of the source by integrating the given patch
Signatures​
Runtime: zuord.integrate()
​
zuord.integrate
:
Produces a new object with the given patch integrated into the source
function integrate <TSource, TPatch>(source: TSource, patch: TPatch): Zuord.Integrate<TSource, TPatch>
function integrate <TSource, TPatch, TMode>(source: TSource, patch: TPatch, mode: TMode): Zuord.Integrate<TSource, TPatch, TMode>
Type: Zuord.Integrate<>
​
Zuord.Integrate
:
Produces a new type with the given patch integrated into the source.
type Integrate<TSource, TPatch>
type Integrate<TSource, TPatch, TMode>
Demonstration​
import { zuord } from 'zuord';const defaultConfig = {appName: 'MyApp',maxUsers: 100,api: {endpoint: "https://api.example.com",retryAttempts: 3,logRequests: true,}}const config = zuord.integrate(defaultConfig, {maxUsers: 200,api: {retryAttempts: 5,timeout: 5000}})