How to use the yup/lib/boolean function in yup

To help you get started, we’ve selected a few yup examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github perry-js / perry / packages / options-schema / src / index.ts View on Github external
import array from "yup/lib/array";
import boolean from "yup/lib/boolean";
import object from "yup/lib/object";

export default object({
  clearOnReload: boolean(),
  clearOnStart: boolean(),
  clicks: boolean(),
  cookies: boolean(),
  enableScreenRecording: boolean(),
  error: boolean(),
  ignoreScriptErrors: boolean(),
  localStorage: boolean(),
  log: boolean(),
  plugins: array(),
  sessionStorage: boolean(),
  warn: boolean(),
}).noUnknown();
github perry-js / perry / packages / options-schema / src / index.ts View on Github external
import array from "yup/lib/array";
import boolean from "yup/lib/boolean";
import object from "yup/lib/object";

export default object({
  clearOnReload: boolean(),
  clearOnStart: boolean(),
  clicks: boolean(),
  cookies: boolean(),
  enableScreenRecording: boolean(),
  error: boolean(),
  ignoreScriptErrors: boolean(),
  localStorage: boolean(),
  log: boolean(),
  plugins: array(),
  sessionStorage: boolean(),
  warn: boolean(),
}).noUnknown();
github perry-js / perry / packages / options-schema / src / index.ts View on Github external
import array from "yup/lib/array";
import boolean from "yup/lib/boolean";
import object from "yup/lib/object";

export default object({
  clearOnReload: boolean(),
  clearOnStart: boolean(),
  clicks: boolean(),
  cookies: boolean(),
  enableScreenRecording: boolean(),
  error: boolean(),
  ignoreScriptErrors: boolean(),
  localStorage: boolean(),
  log: boolean(),
  plugins: array(),
  sessionStorage: boolean(),
  warn: boolean(),
}).noUnknown();
github perry-js / perry / packages / options-schema / src / index.ts View on Github external
import boolean from "yup/lib/boolean";
import object from "yup/lib/object";

export default object({
  clearOnReload: boolean(),
  clearOnStart: boolean(),
  clicks: boolean(),
  cookies: boolean(),
  enableScreenRecording: boolean(),
  error: boolean(),
  ignoreScriptErrors: boolean(),
  localStorage: boolean(),
  log: boolean(),
  plugins: array(),
  sessionStorage: boolean(),
  warn: boolean(),
}).noUnknown();
github perry-js / perry / packages / options-schema / src / index.ts View on Github external
import array from "yup/lib/array";
import boolean from "yup/lib/boolean";
import object from "yup/lib/object";

export default object({
  clearOnReload: boolean(),
  clearOnStart: boolean(),
  clicks: boolean(),
  cookies: boolean(),
  enableScreenRecording: boolean(),
  error: boolean(),
  ignoreScriptErrors: boolean(),
  localStorage: boolean(),
  log: boolean(),
  plugins: array(),
  sessionStorage: boolean(),
  warn: boolean(),
}).noUnknown();
github perry-js / perry / packages / options-schema / src / index.ts View on Github external
import array from "yup/lib/array";
import boolean from "yup/lib/boolean";
import object from "yup/lib/object";

export default object({
  clearOnReload: boolean(),
  clearOnStart: boolean(),
  clicks: boolean(),
  cookies: boolean(),
  enableScreenRecording: boolean(),
  error: boolean(),
  ignoreScriptErrors: boolean(),
  localStorage: boolean(),
  log: boolean(),
  plugins: array(),
  sessionStorage: boolean(),
  warn: boolean(),
}).noUnknown();
github perry-js / perry / packages / options-schema / src / index.ts View on Github external
import array from "yup/lib/array";
import boolean from "yup/lib/boolean";
import object from "yup/lib/object";

export default object({
  clearOnReload: boolean(),
  clearOnStart: boolean(),
  clicks: boolean(),
  cookies: boolean(),
  enableScreenRecording: boolean(),
  error: boolean(),
  ignoreScriptErrors: boolean(),
  localStorage: boolean(),
  log: boolean(),
  plugins: array(),
  sessionStorage: boolean(),
  warn: boolean(),
}).noUnknown();
github perry-js / perry / packages / options-schema / src / index.ts View on Github external
import array from "yup/lib/array";
import boolean from "yup/lib/boolean";
import object from "yup/lib/object";

export default object({
  clearOnReload: boolean(),
  clearOnStart: boolean(),
  clicks: boolean(),
  cookies: boolean(),
  enableScreenRecording: boolean(),
  error: boolean(),
  ignoreScriptErrors: boolean(),
  localStorage: boolean(),
  log: boolean(),
  plugins: array(),
  sessionStorage: boolean(),
  warn: boolean(),
}).noUnknown();
github perry-js / perry / packages / options-schema / src / index.ts View on Github external
import array from "yup/lib/array";
import boolean from "yup/lib/boolean";
import object from "yup/lib/object";

export default object({
  clearOnReload: boolean(),
  clearOnStart: boolean(),
  clicks: boolean(),
  cookies: boolean(),
  enableScreenRecording: boolean(),
  error: boolean(),
  ignoreScriptErrors: boolean(),
  localStorage: boolean(),
  log: boolean(),
  plugins: array(),
  sessionStorage: boolean(),
  warn: boolean(),
}).noUnknown();
github perry-js / perry / packages / options-schema / src / index.ts View on Github external
import array from "yup/lib/array";
import boolean from "yup/lib/boolean";
import object from "yup/lib/object";

export default object({
  clearOnReload: boolean(),
  clearOnStart: boolean(),
  clicks: boolean(),
  cookies: boolean(),
  enableScreenRecording: boolean(),
  error: boolean(),
  ignoreScriptErrors: boolean(),
  localStorage: boolean(),
  log: boolean(),
  plugins: array(),
  sessionStorage: boolean(),
  warn: boolean(),
}).noUnknown();