Skip to content

Commit

Permalink
chore: various small fixes and chores
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Jan 17, 2023
1 parent 5bb00b3 commit f04c2f4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 80 deletions.
73 changes: 0 additions & 73 deletions CHANGELOG.md

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ represented as a bunch of bytes.
## Usage

```ts
import { PackedStruct } from "https://deno.land/x/byte_type/types/structs/mod.ts";
import { u32, u8 } from "https://deno.land/x/byte_type/types/primitives/mod.ts";
import { PackedStruct, u32, u8 } from "https://deno.land/x/byte_type/mod.ts";

const o = new PackedStruct({ "b": u8, "a": u32 }).object(
const o = new PackedStruct({ "b": u8, "a": u32 }).view(
new DataView(new ArrayBuffer(5)),
0,
);
Expand Down
3 changes: 1 addition & 2 deletions examples/basic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { PackedStruct } from "../types/structs/mod.ts";
import { u32, u8 } from "../types/primitives/mod.ts";
import { PackedStruct, u32, u8 } from "../types/mod.ts";

const o = new PackedStruct({ "b": u8, "a": u32 }).view(
new DataView(new ArrayBuffer(5)),
Expand Down
2 changes: 1 addition & 1 deletion types/array/arrayBuffer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SizedType } from "../types.ts";

export class ArrayBufferLikeType implements SizedType<ArrayBuffer> {
export class ArrayBufferType implements SizedType<ArrayBuffer> {
byteLength: number;

constructor(byteLength: number) {
Expand Down
1 change: 0 additions & 1 deletion types/mod.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from "./array/mod.ts";
export * from "./bitflags/mod.ts";
export * from "./ffi/mod.ts";
export * from "./primitive/mod.ts";
export * from "./string/mod.ts";
export * from "./struct/mod.ts";
Expand Down

0 comments on commit f04c2f4

Please sign in to comment.