Skip to content

Commit

Permalink
chore(tsc): allow entry point of type library
Browse files Browse the repository at this point in the history
Allow importing all types from the package with :

```json
{
  "compilerOptions": {
    "types": ["@numerique-gouv/moncomptepro/src/types"]
  }
}
```
  • Loading branch information
douglasduteil committed Sep 17, 2024
1 parent fe13c77 commit 36ff2e4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
7 changes: 3 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@types/ejs": "^3.1.5",
"@types/express": "^4.17.21",
"@types/express-session": "^1.18.0",
"@types/lodash-es": "^4.17.12",
"@types/morgan": "^1.9.9",
"@zootools/email-spell-checker": "^1.12.0",
"await-to-js": "^3.0.0",
Expand Down Expand Up @@ -99,7 +100,6 @@
"@types/chai-as-promised": "^7.1.8",
"@types/http-errors": "^2.0.4",
"@types/lodash": "^4.17.0",
"@types/lodash-es": "^4.17.12",
"@types/mocha": "^10.0.7",
"@types/node": "^22.1.0",
"@types/oidc-provider": "^8.5.2",
Expand Down
13 changes: 12 additions & 1 deletion src/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/// <reference path="./authenticator.d.ts" />
/// <reference path="./connection.d.ts" />
/// <reference path="./email-domain.d.ts" />
/// <reference path="./express-session.d.ts" />
/// <reference path="./user.d.ts" />
/// <reference path="./is-disposable-email-domain.d.ts" />
/// <reference path="./moderation.d.ts" />
/// <reference path="./oidc-client.d.ts" />
/// <reference path="./oidc-provider.d.ts" />
/// <reference path="./organization-info.d.ts" />
/// <reference path="./organization.d.ts" />
/// <reference path="./request.d.ts" />
/// <reference path="./tld-extract.d.ts" />
/// <reference path="./user-organization-link.d.ts" />
/// <reference path="./user.d.ts" />

0 comments on commit 36ff2e4

Please sign in to comment.