With the goal of creating high-quality declaration files for DefinitelyTyped, I am now tackling the https://github.com/oakmac/chessboardjs/ library. I have successfully imported it as follows:
// CURRENT IMPORT
import * as ChessBoard from "chessboardjs";
and can use the library by calling
const board = ChessBoard('board1', 'start');
However, I would prefer to use an implicit import statement (ES6 style) like this:
// DESIRED IMPORT
import { ChessBoard } from "chessboardjs";
I need some guidance on achieving this as I am still relatively new to TypeScript and declaration files. It is possible that the library may not support implicit imports.
Below is a snippet of what I currently have in the index.d.ts file:
... (remaining code)Thank you in advance!