Mock
Variable: Mock
constMock: {(meta): (_value,context) =>void;avatar:ReturnType<typeofmark>;ReturnType<typeofmark>;firstName:ReturnType<typeofmark>;fullName:ReturnType<typeofmark>;lastName:ReturnType<typeofmark>;linkExisting:ReturnType<typeofmark>;linkNew:ReturnType<typeofmark>;percentage:ReturnType<typeofmark>;phone:ReturnType<typeofmark>;recentDate:ReturnType<typeofmark>;url:ReturnType<typeofmark>;uuid:ReturnType<typeofmark>;word:ReturnType<typeofmark>;ai(opts): (_value,context) =>void;count(nOrRange): (_value,context) =>void;custom(fn): (_value,context) =>void;float(opts?): (_value,context) =>void;futureDate(opts?): (_value,context) =>void;integer(opts?): (_value,context) =>void;lorem(opts?): (_value,context) =>void;pastDate(opts?): (_value,context) =>void;pick<T>(values): (_value,context) =>void; }
Defined in: packages/models/src/mock.ts:67
Type Declaration
Parameters
meta
Returns
(_value, context) => void
avatar
avatar:
ReturnType<typeofmark>
email
email:
ReturnType<typeofmark>
firstName
firstName:
ReturnType<typeofmark>
fullName
fullName:
ReturnType<typeofmark>
lastName
lastName:
ReturnType<typeofmark>
linkExisting
linkExisting:
ReturnType<typeofmark>
linkNew
linkNew:
ReturnType<typeofmark>
percentage
percentage:
ReturnType<typeofmark>
phone
phone:
ReturnType<typeofmark>
recentDate
recentDate:
ReturnType<typeofmark>
url
url:
ReturnType<typeofmark>
uuid
uuid:
ReturnType<typeofmark>
word
word:
ReturnType<typeofmark>
ai()
ai(
opts): (_value,context) =>void
Parameters
opts
maxTokens?
number
prompt
string
Returns
(_value, context) => void
count()
count(
nOrRange): (_value,context) =>void
Parameters
nOrRange
number | { max?: number; min?: number; }
Returns
(_value, context) => void
custom()
custom(
fn): (_value,context) =>void
Parameters
fn
(ctx) => unknown
Returns
(_value, context) => void
float()
float(
opts?): (_value,context) =>void
Parameters
opts?
max?
number
min?
number
precision?
number
Returns
(_value, context) => void
futureDate()
futureDate(
opts?): (_value,context) =>void
Parameters
opts?
within?
"day" | "week" | "month" | "year"
Returns
(_value, context) => void
integer()
integer(
opts?): (_value,context) =>void
Parameters
opts?
max?
number
min?
number
Returns
(_value, context) => void
lorem()
lorem(
opts?): (_value,context) =>void
Parameters
opts?
paragraphs?
number
sentences?
number
words?
number
Returns
(_value, context) => void
pastDate()
pastDate(
opts?): (_value,context) =>void
Parameters
opts?
within?
"day" | "week" | "month" | "year"
Returns
(_value, context) => void
pick()
pick<
T>(values): (_value,context) =>void
Type Parameters
T
T
Parameters
values
readonly T[]
Returns
(_value, context) => void