@kubb/plugin-faker 5.1.5 → 5.1.7

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
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
2
- import { Exclude, Group, Include, Output, OutputOptions, Override, PluginFactoryOptions, Resolver, ResolverPatch, ast } from "kubb/kit";
2
+ import { Exclude, Group, Include, Output, OutputOptions, Override, PluginType, Resolver, ResolverPatch, ast } from "kubb/kit";
3
3
  import { KubbReactNode } from "kubb/jsx";
4
4
  //#region src/types.d.ts
5
5
  /**
@@ -111,7 +111,8 @@ type Options = OutputOptions & {
111
111
  dateParser?: 'faker' | 'dayjs' | 'moment' | (string & {});
112
112
  /**
113
113
  * Library used to generate strings that satisfy a regex `pattern` keyword.
114
- * - `'faker'` uses `faker.helpers.fromRegExp`. No extra dependency.
114
+ * - `'faker'` uses `faker.helpers.fromRegExp`. No extra dependency. Faker does not support
115
+ * shorthand classes such as `\d`, `\w`, or `\s`; use `'randexp'` for those patterns.
115
116
  * - `'randexp'` uses the `randexp` package. Supports a wider regex grammar.
116
117
  *
117
118
  * @default 'faker'
@@ -164,7 +165,7 @@ type ResolvedOptions = {
164
165
  locale: Options['locale'];
165
166
  printer: Options['printer'];
166
167
  };
167
- type PluginFaker = PluginFactoryOptions<'plugin-faker', Options, ResolvedOptions, ResolverFaker>;
168
+ type PluginFaker = PluginType<'plugin-faker', Options, ResolvedOptions, ResolverFaker>;
168
169
  declare global {
169
170
  namespace Kubb {
170
171
  interface PluginRegistry {