index.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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) Meta Platforms, Inc. and affiliates.
  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. compareKeys: _typebox().Type.Readonly(_typebox().Type.Null()),
  23. escapeRegex: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  24. escapeString: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  25. highlight: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  26. indent: _typebox().Type.Readonly(
  27. _typebox().Type.Number({
  28. minimum: 0
  29. })
  30. ),
  31. maxDepth: _typebox().Type.Readonly(
  32. _typebox().Type.Number({
  33. minimum: 0
  34. })
  35. ),
  36. maxWidth: _typebox().Type.Readonly(
  37. _typebox().Type.Number({
  38. minimum: 0
  39. })
  40. ),
  41. min: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  42. printBasicPrototype: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  43. printFunctionName: _typebox().Type.Readonly(_typebox().Type.Boolean()),
  44. theme: _typebox().Type.Readonly(
  45. _typebox().Type.Partial(
  46. _typebox().Type.Object({
  47. comment: _typebox().Type.Readonly(_typebox().Type.String()),
  48. content: _typebox().Type.Readonly(_typebox().Type.String()),
  49. prop: _typebox().Type.Readonly(_typebox().Type.String()),
  50. tag: _typebox().Type.Readonly(_typebox().Type.String()),
  51. value: _typebox().Type.Readonly(_typebox().Type.String())
  52. })
  53. )
  54. )
  55. })
  56. );
  57. const SnapshotFormat = _typebox().Type.Strict(RawSnapshotFormat);
  58. exports.SnapshotFormat = SnapshotFormat;