@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
13 lines (11 loc) • 516 B
text/typescript
/* eslint-disable @typescript-eslint/no-explicit-any */
import { randomBoolean } from '@/mocks/boolean'
import { randomDate } from '@/mocks/date'
import { randomNumber } from '@/mocks/number'
import { randomString } from '@/mocks/string'
import { MockFunction } from '@/services/Mocker'
import { choice } from '@/utilities/arrays'
const mocks = [randomString, randomNumber, randomBoolean, randomDate]
export const randomAny: MockFunction<any, []> = function() {
return choice(Object.values(mocks)).bind(this)()
}