data-type.d.ts 465 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Data type.
  3. */
  4. export declare const DataType: {
  5. ANY: 'any',
  6. STRING: 'string',
  7. NUMBER: 'number',
  8. BOOLEAN: 'boolean',
  9. ARRAY: 'array',
  10. OBJECT: 'object',
  11. };
  12. /**
  13. * Data type.
  14. */
  15. export type DataType = typeof DataType[keyof typeof DataType];
  16. /**
  17. * Data type list.
  18. */
  19. export declare const DATA_TYPE_LIST: DataType[];
  20. /**
  21. * Get data type from value.
  22. *
  23. * @param value
  24. */
  25. export declare function getDataTypeFromValue(value: unknown): DataType;