@types/stamplay-js-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.2.36 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/stamplay-js-sdk

Weekly Downloads

0

Version

1.2.36

License

MIT

Unpacked Size

4.1 kB

Total Files

5

Last publish

Collaborators

  • types