forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stamplay-js-sdk.d.ts
39 lines (31 loc) · 1.07 KB
/
stamplay-js-sdk.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Type definitions for stamplay-js-sdk 1.2.9
// Project: https://github.com/Stamplay/stamplay-js-sdk
// Definitions by: Riderman de Sousa Barbosa <https://github.com/ridermansb/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="..\promises-a-plus\promises-a-plus.d.ts"/>
declare module Stamplay {
export interface IStamplayModel {
signup({}) : PromisesAPlus.Thenable<any>
new() : IStamplayModel
get(property : string) : any
set(property : string, value: any) : void
unset(property : string) : void
fetch(id : any) : PromisesAPlus.Thenable<any>
destroy() : PromisesAPlus.Thenable<any>
save({}?) : PromisesAPlus.Thenable<any>
upVote() : PromisesAPlus.Thenable<any>
}
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;
}