forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stamplay-js-sdk.d.ts
38 lines (30 loc) · 1.04 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
// 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 {
User() : IStamplayObject
Cobject(object : string) : IStamplayObject
}
}
declare var Stamplay: Stamplay.StamplayStatic;
declare module "Stamplay" {
export = Stamplay;
}