Skip to content

Commit 812e35d

Browse files
committed
expose additional types
1 parent 2d7156d commit 812e35d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
export type {
2+
Item,
3+
NamedItem,
4+
ProperLayout,
25
Layout,
36
DeriveType,
47
FixedConversion,

src/layout.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export type BytesItem =
143143
LengthPrefixedLayoutBytes;
144144
export type ArrayItem = FixedLengthArray | LengthPrefixedArray | RemainderArray;
145145
export type Item = NumItem | BytesItem | ArrayItem | SwitchItem;
146-
type NamedItem = Item & { readonly name: string };
146+
export type NamedItem = Item & { readonly name: string };
147147
export type ProperLayout = readonly NamedItem[];
148148
export type Layout = Item | ProperLayout;
149149

0 commit comments

Comments
 (0)