Builds upon the approved #363 PR for typescript migration:
- Converted some of the most fundamental classes to typescript, including
Node
,Literal
,BlankNode
,NamedNode
,Collection
,Statement
. - Introduced a
.types
file for shared types. - Included a temporary
types-temp.ts
file in project root as a reference file for documentation and keeping track of the ts migration process. - The
.isVar
method is set to boolean values, instead of0
or1
. This seemed reasonable, as it's only used for boolean type checks, and the existing types already define it as a boolean value. Timbl confirmed thatisVar
is only used for boolean operations. - JSDoc is replaced with Typedoc. Combined with types and comments from
@types/rdflib
, this makes the documentation far more complete. - I used many of the types and comments from
@types/rdflib
by Cénotélie. Added credits in `package.json