Skip to content

Commit 5c8ae06

Browse files
authored
fix: fix some type errors and follow best practice (#484)
1 parent e296c26 commit 5c8ae06

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

index.d.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
interface LintIssue {
22
lintId: string;
33
severity: 'error' | 'warning';
4-
node: 'string';
5-
lintMessage: 'string';
4+
node: string;
5+
lintMessage: string;
66
}
77

88
interface FileLintResult {
@@ -23,7 +23,7 @@ interface LinterResult {
2323
type NpmPackageJsonLintOptions = {
2424
cwd?: string;
2525
config?: object;
26-
configFile: string;
26+
configFile?: string;
2727
configBaseDirectory?: string;
2828
quiet?: boolean;
2929
ignorePath?: string;
@@ -45,8 +45,11 @@ declare class NpmPackageJsonLint {
4545
}
4646

4747
export {
48+
NpmPackageJsonLint
49+
};
50+
51+
export type {
4852
FileLintResult,
4953
LinterResult,
50-
LintIssue,
51-
NpmPackageJsonLint
54+
LintIssue
5255
};

0 commit comments

Comments
 (0)