Skip to content

Commit 4742c6f

Browse files
committed
fix: same TypeScript type for .version in Pkg & PkgInfo
this simplifies the use for the consumers of the lib, when in example someone wants to cast from PkgInfo to Pkg
1 parent 2010cb6 commit 4742c6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
export interface Pkg {
77
name: string;
8-
version?: string; // shouldn't be null, but might happen
8+
version?: string;
99
}
1010

1111
export interface PkgInfo {
1212
name: string;
13-
version: string | null;
13+
version?: string;
1414
// NOTE: consider adding in the future
1515
// requires?: {
1616
// name: string;

0 commit comments

Comments
 (0)