Skip to content

Commit

Permalink
perf: optimize typescript definition
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjianwen committed Apr 13, 2021
1 parent 33e3271 commit f437c40
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@
### Features

- add change log and update docs

## v1.3.0

### Improvements

- optimize typescript definition
13 changes: 6 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
declare module 'nc-screen' {
interface ScreenInfo {
width: number;
height: number;
isRetina?: boolean;
}
export function getInfo(): ScreenInfo;
interface ScreenInfo {
width: number;
height: number;
isRetina?: boolean;
}

export function getInfo(): ScreenInfo;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nc-screen",
"version": "1.2.2",
"version": "1.3.0",
"description": "Nodejs C++ addon to get device screen size",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit f437c40

Please sign in to comment.