Implement as ts module and compile to js + d.ts file

To avoid the complications of separately implementing a JS module
and writing types for it and having consumers of the module do the
type definition assignement the module is now a typescript module which
compiles to javascript + a type definition file.
Signed-off-by: default avatarSnorre Magnus Davøen <snorre.davoen@nsd.uib.no>
parent 72e43ee6
Pipeline #5098 passed with stage
in 19 seconds