arx-research / libhalo

LibHaLo - Programmatically interact with HaLo tags from the web browser, mobile application or the desktop.
https://arx.org/?source=gh
MIT License
35 stars 5 forks source link

Import fails due to missing types #286

Closed mwawrusch closed 2 months ago

mwawrusch commented 9 months ago

Posted in the wrong repo, sorry, should be libHalo.

Hi, I am having problems importing libhalo because of missing types. We are using a standard turbo monorep with vercel based configs.

Workaround for now seems to be

declare module '*';

in a libhalo.d.ts file.

This is the vercel standard React Library tsconfig that we use:

{
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "React Library",
  "extends": "./base.json",
  "compilerOptions": {
    "jsx": "react-jsx",
    "lib": ["ES2015", "DOM"],
    "module": "ESNext",
    "target": "es6"
  }
}

base

{
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "Default",
  "compilerOptions": {
    "composite": false,
    "declaration": true,
    "declarationMap": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "inlineSources": false,
    "isolatedModules": true,
    "moduleResolution": "node",
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "preserveWatchOutput": true,
    "skipLibCheck": true,
    "strict": true,
    "strictNullChecks": true
  },
  "exclude": ["node_modules"]
}
icedevml commented 2 months ago

Hello, thanks for your report. The libhalo version 1.5.0 was now released, with the full TypeScript support. We also plan to enhance typing support in further versions.