Installation
npm install --save @types/stamplay-js-sdk
Summary
This package contains type definitions for stamplay-js-sdk (https://github.com/Stamplay/stamplay-js-sdk).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stamplay-js-sdk.
index.d.ts
declare namespace Stamplay {
function init(appId: string): void;
function User(): StamplayObject;
function Cobject(object: string): StamplayObject;
interface Model {
signup(arg: any): Promise<any>;
new(): Model; // This is suspicious, but tests show model instances being constructable...
get(property: string): any;
set(property: string, value: any): void;
unset(property: string): void;
fetch(id: any): Promise<any>;
destroy(): Promise<any>;
save(arg?: any): Promise<any>; // TODO: Don't know what this is supposed to be.
upVote(): Promise<any>;
}
interface StamplayObject {
Model: Model;
Collection: any;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Riderman de Sousa Barbosa.