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
Post a Comment