Skip to content

Commit 5904d1a

Browse files
committed
fix/declaration-file
1 parent 8911369 commit 5904d1a

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

flat.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
export * from "./index.js";
1+
import eslintConfigPrettier from "./index.js";
22

3-
export const name: "config-prettier";
3+
declare const eslintConfigPrettierFlat: typeof eslintConfigPrettier & {
4+
name: "config-prettier";
5+
};
6+
7+
export = eslintConfigPrettierFlat;

index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
export const rules: Record<string, 0 | "off">;
1+
declare const eslintConfigPrettier: {
2+
rules: Record<string, 0 | "off">;
3+
};
4+
5+
export = eslintConfigPrettier;

0 commit comments

Comments
 (0)