Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
callqh committed Apr 30, 2024
1 parent a5cf87f commit dbd321b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ export interface IOptions {
/**
* The path to the root of the project
*/
include: string[],
include?: string[],
/**
* exclude the path from the project
*/
exclude: string[]
exclude?: string[]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "farm-plugin-remove-console",
"version": "0.1.3",
"version": "0.1.4",
"main": "scripts/index.js",
"types": "scripts/index.d.ts",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion scripts/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import type { IOptions } from "../options";
const binPath: (options: IOptions) =>[string, typeof options];
declare const binPath: (options?: IOptions) =>[string, typeof options];
export default binPath;

0 comments on commit dbd321b

Please sign in to comment.