title: Type 'string' is not assignable to type 'Date'. ts(2322)
body: <p>The error appears in the VScode console, but my app still works</p>
  <p>the error is:</p>
  <p>Type 'string' is not assignable to type 'Date'.</p>
  <p>The code:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;script lang=&quot;ts&quot;&gt;
    import { newForm } from 'manzana';
    import { userService } from '$lib/services/user';
  
    import { createEventDispatcher } from 'svelte';
    const dispatch = createEventDispatcher();
  
    const now = new Date();
    const today = `${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate() + 1}`;
  
    const { handleSubmit, values } = newForm&lt;{
      name: string;
      lastName: string;
      email: string;
      password: string;
      confirmPassword: string;
      username: string;
      birthdate: Date;
    }&gt;({
      initialValues: {
        name: '',
        lastName: '',
        email: '',
        username: '',
        birthdate: today // here the error appears
      },
      onSubmit: async (values) =&gt; {
  
        const birthdate = new Date(values.birthdate).toJSON();
  
        //here create the user with graphql
        await userService.userCreate({
          name: values.name,
          lastName: values.lastName,
          email: values.email,
          password: values.password,
          username: values.username,
          birthdate
        });
      }
    });
  &lt;/script&gt;
  
  &lt;div&gt;
    ...
  &lt;/div&gt;
  
  </code></pre>
  <p>the error appears on line 25</p>
  <p>vscode error:
  [{
  &quot;resource&quot;: &quot;/home/michael/Documents/projects/nexus/nexus/src/lib/components/Authenticate/SignUp.svelte&quot;,
  &quot;owner&quot;: &quot;<em>generated_diagnostic_collection_name</em>#0&quot;,
  &quot;code&quot;: &quot;2322&quot;,
  &quot;severity&quot;: 8,
  &quot;message&quot;: &quot;Type 'string' is not assignable to type 'Date'.&quot;,
  &quot;source&quot;: &quot;ts&quot;,
  &quot;startLineNumber&quot;: 25,
  &quot;startColumn&quot;: 7,
  &quot;endLineNumber&quot;: 25,
  &quot;endColumn&quot;: 16
  }]</p>