index.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.SnapshotFormat = void 0;
  6. function _typebox() {
  7. const data = require('@sinclair/typebox');
  8. _typebox = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. /**
  14. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  15. *
  16. * This source code is licensed under the MIT license found in the
  17. * LICENSE file in the root directory of this source tree.
  18. */
  19. const RawSnapshotFormat = _typebox().Type.Partial(
  20. _typebox().Type.Object({
  21. callToJSON: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  22. escapeRegex: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  23. escapeString: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  24. highlight: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  25. indent: _typebox().Type.Readonly(
  26. _typebox().Type.Number({
  27. minimum: 0
  28. })
  29. ),
  30. maxDepth: _typebox().Type.Readonly(
  31. _typebox().Type.Number({
  32. minimum: 0
  33. })
  34. ),
  35. maxWidth: _typebox().Type.Readonly(
  36. _typebox().Type.Number({
  37. minimum: 0
  38. })
  39. ),
  40. min: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  41. printBasicPrototype: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  42. printFunctionName: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  43. theme: _typebox().Type.Readonly(
  44. _typebox().Type.Partial(
  45. _typebox().Type.Object({
  46. comment: _typebox().Type.Readonly(_typebox().Type.String()),
  47. content: _typebox().Type.Readonly(_typebox().Type.String()),
  48. prop: _typebox().Type.Readonly(_typebox().Type.String()),
  49. tag: _typebox().Type.Readonly(_typebox().Type.String()),
  50. value: _typebox().Type.Readonly(_typebox().Type.String())
  51. })
  52. )
  53. )
  54. })
  55. );
  56. const SnapshotFormat = _typebox().Type.Strict(RawSnapshotFormat);
  57. exports.SnapshotFormat = SnapshotFormat;