npm.io
1.2.36 • Published 2 years ago

@types/stamplay-js-sdk

Licence
MIT
Version
1.2.36
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.3K

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Riderman de Sousa Barbosa.