🤖 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:
Andrei Karushev
2022-06-04 23:47:00 +03:00
committed by GitHub
parent f9987054d7
commit 04b88499b6
2 changed files with 3 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import ClientJS = require("clientjs");
import { ClientJS } from "clientjs";
const client = new ClientJS();
client.getSoftwareVersion(); // $ExpectType string

View File

@@ -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;