slint/api/node/typescript
Simon Hausmann 22e7c4d4a6 Fix Node.js docs missing Diagnostic, DiagnosticLevel, RgbaColor, and Brush
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.
2025-01-14 14:49:02 +01:00
..
index.ts Fix Node.js docs missing Diagnostic, DiagnosticLevel, RgbaColor, and Brush 2025-01-14 14:49:02 +01:00
models.ts Fix Node.js docs missing Diagnostic, DiagnosticLevel, RgbaColor, and Brush 2025-01-14 14:49:02 +01:00