世博项目中未出现的自定义库的键入/自动完成建议

问题描述

我使用 Typescript 和 React Native 制作了一个库并将其发布在 npm 上,但是当我在任何博览会项目中使用它时,我没有收到任何类型或自动完成建议。谁能告诉我解决这个问题的步骤?另外,我使用了 Callstack react-native-builder-bob 来设置这个库。

我现在的 tsconfig 是:

{
  "compilerOptions": {
    "baseUrl": ".","declaration": true,"paths": {
      "my-library": ["./src/index"]
    },"allowUnreachableCode": false,"allowUnusedLabels": false,"esModuleInterop": true,"importsNotUsedAsValues": "error","forceConsistentCasingInFileNames": true,"jsx": "react","lib": ["esnext","dom"],"module": "esnext","moduleResolution": "node","noFallthroughCasesInSwitch": true,"noImplicitReturns": true,"noImplicitUseStrict": false,"noStrictGenericChecks": false,"noUnusedLocals": true,"noUnusedParameters": true,"resolveJsonModule": true,"skipLibCheck": true,"strict": true,"target": "esnext"
  }
}


解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)