-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: optimize typescript definition
- Loading branch information
liangjianwen
committed
Apr 13, 2021
1 parent
33e3271
commit f437c40
Showing
3 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,9 @@ | |
### Features | ||
|
||
- add change log and update docs | ||
|
||
## v1.3.0 | ||
|
||
### Improvements | ||
|
||
- optimize typescript definition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters