title: How to get a `readonly string[]` into a `string[]`?
body: <p>I have the following data setup (not declaring as an <code>enum</code> because this is shared between TypeScript server code and non-TypeScript client code):</p>
  
  <pre><code>import { enumType } from 'nexus';
  
  export const TYPE_ENUM = Object.freeze({
    H: 'H',
    S: 'S',
  });
  export const TYPES = Object.freeze(Object.values(TYPE_ENUM));
  
  export const MyType = enumType({
    name: 'MyType',
    members: TYPES,
  });
  </code></pre>
  
  <p>TypeScript is giving me the following warning regarding the <code>members</code> field:</p>
  
  <pre><code>Type '(readonly string[])[]' is not assignable to type '(string | EnumMemberInfo)[] | Record&lt;string, string | number | boolean | object&gt;'.
    Type '(readonly string[])[]' is not assignable to type '(string | EnumMemberInfo)[]'.
      Type 'readonly string[]' is not assignable to type 'string | EnumMemberInfo'.
        Type 'readonly string[]' is not assignable to type 'string'.ts(2322)
  enumType.d.ts(29, 3): The expected type comes from property 'members' which is declared here on type 'EnumTypeConfig&lt;"MyType"&gt;'
  </code></pre>
  
  <p>I understand the error. Can't put a <code>readonly string[]</code> into something expecting <code>string[]</code> because they are different types. My question, is what is the best way to overcome this?</p>
  
  <p>I've seen that unwrapping and recreating the array works: <code>members: [...TYPES]</code> but that feels wrong.</p>