mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-27 02:16:26 +00:00
typedoc uses typescript under the hood. An import from "rust-module.cjs" won't look for .d.ts but .d.cts as per https://www.typescriptlang.org/docs/handbook/modules/reference.html#file-extension-substitution . This way the existing warning from the TS compiler that rust-module.cjs was imported as any goes away and actual type checking is being done. The rest of this commit fixes those type errors, including missing type casts to make ts-node's transpiler not thrown an exception. |
||
|---|---|---|
| .. | ||
| index.ts | ||
| models.ts | ||