Skip to content

Commit

Permalink
chore: update declare modules
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Jul 22, 2024
1 parent 8ce77cf commit 4b0b0b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

export declare function defineCommand(options: Command): Command
export declare function run(cmd: Command, args?: Array<string> | undefined | null): void
export const VERSION: string
/**
* Command context
*
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ if (!nativeBinding) {
throw new Error(`Failed to load native binding`)
}

const { defineCommand, run, VERSION } = nativeBinding
const { defineCommand, run } = nativeBinding

module.exports.defineCommand = defineCommand
module.exports.run = run
module.exports.VERSION = VERSION

0 comments on commit 4b0b0b1

Please sign in to comment.