@kubb/core 0.46.0 → 0.47.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -193,6 +193,14 @@ declare const read: (path: string) => Promise<string>;
193
193
 
194
194
  declare const isURL: (data: string) => boolean;
195
195
 
196
+ declare const format: (source: string) => string;
197
+
198
+ type Data = string[][];
199
+ type Options$1 = {
200
+ typed?: boolean;
201
+ };
202
+ declare const objectToParameters: (data: Data, options?: Options$1) => string;
203
+
196
204
  type Import = {
197
205
  name: string | string[];
198
206
  path: string;
@@ -237,7 +245,9 @@ declare class FileManager {
237
245
  private getCache;
238
246
  private getCacheByPath;
239
247
  private getCountByStatus;
240
- getSource(file: File): string;
248
+ getSource(file: File, options?: {
249
+ format?: boolean;
250
+ }): string;
241
251
  get files(): File[];
242
252
  add(file: File): Promise<File>;
243
253
  addOrAppend(file: File): Promise<File>;
@@ -375,4 +385,4 @@ declare abstract class SchemaGenerator<TOptions extends object, TInput, TOutput>
375
385
  abstract build(schema: TInput, name: string, description?: string): TOutput;
376
386
  }
377
387
 
378
- export { Argument0, CLIOptions, Cache, CacheStore, CorePluginOptions, File, FileManager, FileName, Generator, KubbBuild, KubbConfig, KubbJSONPlugin, KubbPlugin, KubbPluginKind, KubbUserConfig, LogLevel, LogType, Logger, MaybePromise, OptionalPath, Path, PathMode, PluginContext, PluginFactoryOptions, PluginLifecycle, PluginLifecycleHooks, PluginManager, ResolveIdParams, SchemaGenerator, Status, Strategy, TransformResult, TreeNode, UUID, ValidationPluginError, build, clean, createPlugin, createPluginCache, build as default, defineConfig, getPathMode, getRelativePath, hooks, isPromise, isURL, name, read, validatePlugins, write };
388
+ export { Argument0, CLIOptions, Cache, CacheStore, CorePluginOptions, File, FileManager, FileName, Generator, KubbBuild, KubbConfig, KubbJSONPlugin, KubbPlugin, KubbPluginKind, KubbUserConfig, LogLevel, LogType, Logger, MaybePromise, OptionalPath, Path, PathMode, PluginContext, PluginFactoryOptions, PluginLifecycle, PluginLifecycleHooks, PluginManager, ResolveIdParams, SchemaGenerator, Status, Strategy, TransformResult, TreeNode, UUID, ValidationPluginError, build, clean, createPlugin, createPluginCache, build as default, defineConfig, format, getPathMode, getRelativePath, hooks, isPromise, isURL, name, objectToParameters, read, validatePlugins, write };