index.mjs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*!
  2. * TSBuffer Schema v2.2.0
  3. * -----------------------------------------
  4. * MIT LICENSE
  5. * KingWorks (C) Copyright 2022
  6. * https://github.com/k8w/tsbuffer-schema
  7. */
  8. /**
  9. * Enum for every possible `TSBufferSchema['type']`
  10. */
  11. var SchemaType = /** @class */ (function () {
  12. function SchemaType() {
  13. }
  14. // #region 确定的TypeScript的类型
  15. SchemaType.Boolean = 'Boolean';
  16. SchemaType.Number = 'Number';
  17. SchemaType.String = 'String';
  18. SchemaType.Array = 'Array';
  19. SchemaType.Tuple = 'Tuple';
  20. SchemaType.Enum = 'Enum';
  21. SchemaType.Any = 'Any';
  22. SchemaType.Literal = 'Literal';
  23. SchemaType.Object = 'Object';
  24. SchemaType.Interface = 'Interface';
  25. SchemaType.Buffer = 'Buffer';
  26. SchemaType.IndexedAccess = 'IndexedAccess';
  27. SchemaType.Reference = 'Reference';
  28. SchemaType.Keyof = 'Keyof';
  29. SchemaType.Union = 'Union';
  30. SchemaType.Intersection = 'Intersection';
  31. SchemaType.NonNullable = 'NonNullable';
  32. SchemaType.Date = 'Date';
  33. // #endregion
  34. // #region 非TypeScript基本类型,临时过渡用
  35. SchemaType.Pick = 'Pick';
  36. SchemaType.Partial = 'Partial';
  37. SchemaType.Omit = 'Omit';
  38. SchemaType.Overwrite = 'Overwrite';
  39. // #endregion
  40. SchemaType.Custom = 'Custom';
  41. return SchemaType;
  42. }());
  43. export { SchemaType };