Typescript Declaration File For Chessboardjs (implicit Import)
Hoping to create a few declaration files for DefinitelyTyped (So I want to make sure they are top quality). The next lib I am taking on is https://github.com/oakmac/chessboardjs/.
Solution 1:
It doesn't work like this. The definition file describes how the library works.
This
import * as ChessBoard from "chessboardjs"
and this
import ChessBoard from "chessboardjs"
and this
import { ChessBoard } from "chessboardjs"
each mean three very different things at runtime. Almost certainly only one of them works. If you have a working import, you shouldn't be touching the definition file at all. It's just going to break at runtime.
Post a Comment for "Typescript Declaration File For Chessboardjs (implicit Import)"