How to use the tiny-decoders.repr.sensitive function in tiny-decoders

To help you get started, we’ve selected a few tiny-decoders 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 lydell / tiny-decoders / typescript / repr.ts View on Github external
recurseMaxLength: 10,
});

repr("", {});

// Misspelled option ("maxObjetChildren" instead of "maxObjectChildren"):
repr([null, "", repr], {
  maxArrayChildren: 10,
  // $ExpectError
  maxObjetChildren: 10,
});

repr.sensitive = true;
repr.sensitive = false;
// $ExpectError
repr.sensitive = "true";
// $ExpectError
repr.shorts = false;