Skip to content

Commit

Permalink
feat(types): export common types directly
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenoak committed Nov 28, 2023
1 parent 4e8ca24 commit 7411298
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import StructIo, { StructFields, StructOptions } from './type/StructIo.js';
import TlvIo, { TlvValueCallback } from './type/TlvIo.js';
import { validateType } from './util.js';
import { openStream } from './stream/util.js';
import { IoStream, IoType } from './types.js';
import { IoContext, IoSource, IoStream, IoType } from './types.js';

const array = (type: IoType, options: ArrayOptions) =>
new ArrayIo(type, options);
Expand Down Expand Up @@ -161,6 +161,10 @@ const float64le = {
};

export {
IoContext,
IoSource,
IoStream,
IoType,
array,
string,
struct,
Expand Down

0 comments on commit 7411298

Please sign in to comment.