@@ -53,14 +53,11 @@ You can add the entire [default client configuration bundle](#bundle--defaultcon
5353Finally, build a ClientConfig or CoreClientConfig to pass to the PolywrapClient constructor.
5454
5555``` typescript
56- // accepted by the PolywrapClient
57- const clientConfig = builder .build ();
58-
5956 // accepted by either the PolywrapClient or the PolywrapCoreClient
60- let coreClientConfig = builder .buildCoreConfig ();
57+ let coreClientConfig = builder .build ();
6158
6259 // build with a custom cache and/or resolver
63- coreClientConfig = builder .buildCoreConfig (
60+ coreClientConfig = builder .build (
6461 new WrapperCache (),
6562 RecursiveResolver .from ([])
6663 );
@@ -152,45 +149,6 @@ A complete example using all or most of the available methods.
152149
153150# Reference
154151
155- ## Types
156-
157- ``` ts
158- /**
159- * Client configuration that can be passed to the PolywrapClient
160- *
161- * @remarks
162- * The PolywrapClient converts the ClientConfig to a CoreClientConfig.
163- */
164- export interface ClientConfig {
165- /** set environmental variables for a wrapper */
166- readonly envs: Env [];
167-
168- /** register interface implementations */
169- readonly interfaces: InterfaceImplementations [];
170-
171- /** redirect invocations from one uri to another */
172- readonly redirects: IUriRedirect [];
173-
174- /** add embedded wrappers */
175- readonly wrappers: IUriWrapper [];
176-
177- /** add and configure embedded packages */
178- readonly packages: IUriPackage [];
179-
180- /** customize URI resolution
181- *
182- * @remarks
183- * A UriResolverLike can be any one of:
184- * IUriResolver<unknown>
185- * | IUriRedirect
186- * | IUriPackage
187- * | IUriWrapper
188- * | UriResolverLike[]
189- * */
190- readonly resolvers: UriResolverLike [];
191- }
192- ```
193-
194152## ClientConfigBuilder
195153
196154### Constructor
@@ -305,7 +263,9 @@ export interface ClientConfig {
305263 * @param uriEnvs : and object where key is the uri and value is the another object with the env variables for the uri
306264 * @returns IClientConfigBuilder (mutated self)
307265 */
308- addEnvs (uriEnvs : Record < string , Record < string , unknown >> ): IClientConfigBuilder ;
266+ addEnvs (
267+ uriEnvs : Record < string , Record < string , unknown >>
268+ ): IClientConfigBuilder ;
309269```
310270
311271### removeEnv
@@ -460,23 +420,13 @@ export interface ClientConfig {
460420```
461421
462422### build
463- ``` ts
464- /**
465- * Build a sanitized client configuration that can be passed to the PolywrapClient constructor
466- *
467- * @returns ClientConfig that results from applying all the steps in the builder pipeline
468- */
469- build (): ClientConfig ;
470- ```
471-
472- ### buildCoreConfig
473423``` ts
474424 /**
475425 * Build a sanitized core client configuration that can be passed to the PolywrapClient or PolywrapCoreClient constructors
476426 *
477427 * @returns CoreClientConfig that results from applying all the steps in the builder pipeline
478428 */
479- buildCoreConfig (): CoreClientConfig ;
429+ build (): CoreClientConfig ;
480430```
481431
482432## Bundles
@@ -578,9 +528,7 @@ export const getDefaultConfig = (): BuilderConfig => ({
578528 [defaultWrappers .concurrentInterface ]: new Set ([
579529 defaultPackages .concurrent ,
580530 ]),
581- [defaultInterfaces .logger ]: new Set ([
582- defaultPackages .logger ,
583- ]),
531+ [defaultInterfaces .logger ]: new Set ([defaultPackages .logger ]),
584532 },
585533 resolvers: [],
586534});
0 commit comments