Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TypeScript definition is not published #1

Closed
lacolaco opened this issue May 31, 2018 · 11 comments · Fixed by #3, #11 or #12
Closed

TypeScript definition is not published #1

lacolaco opened this issue May 31, 2018 · 11 comments · Fixed by #3, #11 or #12
Assignees

Comments

@lacolaco
Copy link

ngx-translate-phraseapp npm package doesn't contain its own TypeScript type definition.

image

image

@theSoenke
Copy link
Contributor

Hi, I will look into adding the type definitions. Do you use any settings that enforce the usage of type definitions? For example our demo project works fine without the type definitions https://github.com/phrase/ngx-translate-phraseapp-demo

@lacolaco
Copy link
Author

lacolaco commented Jun 4, 2018

@theSoenke Simply, strict: true in tsconfig.app.json. It restricts many ambiguous typing including no-definition importing.

@theSoenke theSoenke mentioned this issue Jun 6, 2018
@theSoenke
Copy link
Contributor

@lacolaco I just published version 0.1.6. This release now should contain the Typescript type definitions. Let me know if you should still see any issues

@lacolaco
Copy link
Author

@theSoenke I've update version and it works perfectly! Thanks!

@mikyaj
Copy link

mikyaj commented Jan 17, 2020

@theSoenke I am facing same issue with version 0.3.0

@theSoenke
Copy link
Contributor

Hi @mikyaj, I was able to reproduce it myself and I'm looking into it

@FRSgit
Copy link
Contributor

FRSgit commented Feb 11, 2020

Hello @mikyaj! Could you please share your project's config (especially tsconfig.json)?
I want to make sure that your case is covered by the fix I've just written

@mikyaj
Copy link

mikyaj commented Feb 11, 2020

Here you go @FRSgit

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "downlevelIteration": true,
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "module": "esnext",
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es2015",
    "resolveJsonModule": true,
    "esModuleInterop": true  ,
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2018",
      "dom"
    ]
  }
}

@FRSgit
Copy link
Contributor

FRSgit commented Mar 9, 2020

Hey @mikyaj! I'm sorry that it took so long. I've just released new version of the package (0.4.1) and it should resolve the issue you're facing. Can you check it please? ✌️

@mikyaj
Copy link

mikyaj commented Mar 11, 2020

Hi @FRSgit It works fine now. I hace checked. Thanks.

@FRSgit
Copy link
Contributor

FRSgit commented Mar 11, 2020

@mikyaj Thank you for testing my fix 💪 Glad to hear that it works now! Sorry that you needed to wait for so long - I needed to make few more adjustments to make this change possible.
Feel free to contact us whenever you need to, have a good one! 👌

# for free to join this conversation on GitHub. Already have an account? # to comment