Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

chore(tsc): allow entry point of type library #695

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

douglasduteil
Copy link
Member

Allow importing all types from the package with :

{
  "compilerOptions": {
    "types": ["@numerique-gouv/moncomptepro/src/types"]
  }
}

@douglasduteil douglasduteil added the enhancement New feature or request label Sep 17, 2024
@douglasduteil douglasduteil self-assigned this Sep 17, 2024
Allow importing all types from the package with :

```json
{
  "compilerOptions": {
    "types": ["@numerique-gouv/moncomptepro/src/types"]
  }
}
```
@douglasduteil douglasduteil force-pushed the douglasduteil/chore-tsc-allow-entry-point-of-type-library branch from 0b98c26 to 36ff2e4 Compare September 17, 2024 14:16
@douglasduteil douglasduteil marked this pull request as draft September 19, 2024 13:59
@douglasduteil
Copy link
Member Author

src/managers/webauthn.ts(118,14): error TS2742: The inferred type of 'getRegistrationOptions' cannot be named without a reference to '@numerique-gouv/moncomptepro/node_modules/@simplewebauthn/typescript-types'. This is likely not portable. A type annotation is necessary.
src/managers/webauthn.ts(235,14): error TS2742: The inferred type of 'getAuthenticationOptions' cannot be named without a reference to '@numerique-gouv/moncomptepro/node_modules/@simplewebauthn/typescript-types'. This is likely not portable. A type annotation is necessary.

@@ -22,5 +22,5 @@ jobs:
node-version-file: package.json
- run: CYPRESS_INSTALL_BINARY=0 npm ci --include=dev
- run: npm run test:lint
- run: npm run test:type-check
- run: npm exec tsc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est ce qu'une compilation implique un type check ? qu'est ce qui est testé en plus ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants