@kubb/core 0.45.1 → 0.47.0

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,8 @@ 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
+
196
198
  type Import = {
197
199
  name: string | string[];
198
200
  path: string;
@@ -237,7 +239,9 @@ declare class FileManager {
237
239
  private getCache;
238
240
  private getCacheByPath;
239
241
  private getCountByStatus;
240
- getSource(file: File): string;
242
+ getSource(file: File, options?: {
243
+ format?: boolean;
244
+ }): string;
241
245
  get files(): File[];
242
246
  add(file: File): Promise<File>;
243
247
  addOrAppend(file: File): Promise<File>;
@@ -375,4 +379,4 @@ declare abstract class SchemaGenerator<TOptions extends object, TInput, TOutput>
375
379
  abstract build(schema: TInput, name: string, description?: string): TOutput;
376
380
  }
377
381
 
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 };
382
+ 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, read, validatePlugins, write };