title: Kendo Ui DataSource schema model in Typescript
body: <p>I have a kendo.data.Model in my Angular app that I'm converting to Typescript. The DataSource works fine until I add the Model definition to the schema.  </p>
  
  <p>Is there another syntax for defining models with a DataSource using Typescript Kendo?  </p>
  
  <p>The non-Typescript version was working fine.</p>
  
  <pre><code>var someModel = new kendo.data.Model({
       id: "id",
       fields: {
            id: { type: "string" },
            name: { type: "string", validation: { min: 1, required: true } },
            isActive: { type: "boolean" }
            }
       });
  
   var source = new kendo.data.DataSource({
         transport: {
              read: (options: any) =&gt; {
                   someService.getData(options.data).then(function (results) {
                        options.success(results.data);
                        });
                    }
              },
              schema: {
                  model: someModel
              }});
  </code></pre>
  
  <p><strong>Edit</strong>: the issue was I missed the "define" as in "kendo.data.Model.define({}). But in changing it, the problem moved and now I can't use the typed model in other code:</p>
  
  <pre><code>class Foo {
      someModelProp: kendo.data.Model;
  
      constructor() {
          this.someModelProp = kendo.data.Model.define({*see above code for fields*});
      }
  }
  </code></pre>
  
  <p>I get the compile error on the "this.someModelProp =" line:</p>
  
  <p>Type 'typeof Model' is not assignable to type 'Model'. Property '_defaultId' is missing in type 'typeof Model'.</p>
  
  <p>I can change "someModelProp" to "any" but then I'm going away from using typed models, and that goes against the purpose of Typescript.</p>