mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
🤖 Merge PR #60667 feat: update clientjs import by @infodusha
* feat: update clientjs import * fix: clientjs better export Co-authored-by: infodusha <infodusha@ya.ru>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import ClientJS = require("clientjs");
|
||||
import { ClientJS } from "clientjs";
|
||||
|
||||
const client = new ClientJS();
|
||||
client.getSoftwareVersion(); // $ExpectType string
|
||||
|
||||
7
types/clientjs/index.d.ts
vendored
7
types/clientjs/index.d.ts
vendored
@@ -1,9 +1,9 @@
|
||||
// Type definitions for clientjs 0.1
|
||||
// Type definitions for clientjs 0.2
|
||||
// Project: https://clientjs.org
|
||||
// Definitions by: icopp <https://github.com/icopp>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare class ClientJS {
|
||||
export class ClientJS {
|
||||
constructor();
|
||||
|
||||
/** @return A string containing this software version number. */
|
||||
@@ -186,6 +186,3 @@ declare class ClientJS {
|
||||
/** @return A string containing canvas image information */
|
||||
getCanvasPrint(): string;
|
||||
}
|
||||
|
||||
export = ClientJS;
|
||||
export as namespace ClientJS;
|
||||
|
||||
Reference in New Issue
Block a user