@jterrazz/typescript 6.0.1 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jterrazz/typescript",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
4
4
  "author": "Jean-Baptiste Terrazzoni <contact@jterrazz.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,8 +16,12 @@
16
16
  ],
17
17
  "type": "module",
18
18
  "main": "src/index.js",
19
+ "types": "src/index.d.ts",
19
20
  "exports": {
20
- ".": "./src/index.js",
21
+ ".": {
22
+ "types": "./src/index.d.ts",
23
+ "default": "./src/index.js"
24
+ },
21
25
  "./tsconfig/*": "./presets/tsconfig/*.json",
22
26
  "./tsconfig/*.json": "./presets/tsconfig/*.json",
23
27
  "./tsdown/*": "./presets/tsdown/*.js",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "$schema": "https://unpkg.com/knip@6/schema.json",
3
- "ignoreDependencies": ["@jterrazz/codestyle", "@jterrazz/test", "@jterrazz/typescript"],
3
+ "ignoreDependencies": ["@jterrazz/test", "@jterrazz/typescript"],
4
4
  "ignoreBinaries": ["oxlint", "oxfmt"]
5
5
  }
package/src/index.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ type ConfigObject = Record<string, unknown>;
2
+
3
+ declare const oxfmtConfig: ConfigObject;
4
+
5
+ declare const oxlintPresets: {
6
+ expo: ConfigObject;
7
+ hexagonal: ConfigObject;
8
+ next: ConfigObject;
9
+ node: ConfigObject;
10
+ };
11
+
12
+ declare const defaultExport: {
13
+ oxfmt: typeof oxfmtConfig;
14
+ oxlint: typeof oxlintPresets;
15
+ };
16
+
17
+ export { oxfmtConfig as oxfmt, oxlintPresets as oxlint };
18
+ export default defaultExport;