parse.com - Extend Parse SDK Object in TypeScript -


in order define easy getters , setters parse objects in angular2, want extend parse.object so:

const parse = require('parse').parse;  export class test extends parse.object {      constructor() {         super('test');     }      items():array<string> {         return super.get('items');     }      set items(value:array<string>) {         super.set('items', value);     } }  parse.object.registersubclass('test', test); 

however, following error:

error ts2507: type 'any' not constructor function type.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -