// Type definitions for stamplay-js-sdk 1.2.9 // Project: https://github.com/Stamplay/stamplay-js-sdk // Definitions by: Riderman de Sousa Barbosa // Definitions: https://github.com/borisyankov/DefinitelyTyped /// declare module Stamplay { export interface IStamplayModel { signup({}) : PromisesAPlus.Thenable new() : IStamplayModel get(property : string) : any set(property : string, value: any) : void unset(property : string) : void fetch(id : any) : PromisesAPlus.Thenable destroy() : PromisesAPlus.Thenable save({}?) : PromisesAPlus.Thenable upVote() : PromisesAPlus.Thenable } export interface IStamplayObject { Model : IStamplayModel Collection : any } export interface StamplayStatic { init(appId : string) : void; User() : IStamplayObject Cobject(object : string) : IStamplayObject } } declare var Stamplay: Stamplay.StamplayStatic; declare module "Stamplay" { export = Stamplay; }