function getTypeScriptType(value, options) {
  const { outputStringLiterals = false } = options ?? {};

  if (Array.isArray(value)) return getArrayType(value);
  if (typeof value === 'object') return getObjectType(value);
  if (outputStringLiterals && typeof value === 'string') return `"${value.replace(/"/g, '\\"')}"`;
  if (['string', 'number', 'boolean'].includes(typeof value)) return typeof value;

  return 'any';
}
Given some value, returns a basic valid TypeScript type for that value.
Supports numbers, strings, booleans, arrays and objects of any of those types.

@memberof module:formatHelpers
@name getTypeScriptType
@example
```javascript
StyleDictionary.registerFormat({
  name: 'myCustomFormat',
  format: function({ dictionary, options }) {
   return dictionary.allTokens.map(function(prop) {
     var to_ret_prop = 'export const ' + prop.name + ' : ' + getTypeScriptType(prop.value) + ';';
     if (prop.comment)
       to_ret_prop = to_ret_prop.concat(' // ' + prop.comment);
     return to_ret_prop;
   }).join('\n');
  }
});
```
@param {any} value A value to check the type of.
@param {Config & {outputStringLiterals?: boolean}} [options]
@return {String} A valid name for a TypeScript type.