mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
types
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { td, te } from "../shared";
|
||||
|
||||
export class DataViewReader {
|
||||
view: DataView;
|
||||
view: DataView<ArrayBuffer>;
|
||||
cursor: number;
|
||||
|
||||
constructor(view: DataView, cursor: number = 0) {
|
||||
constructor(view: DataView<ArrayBuffer>, cursor: number = 0) {
|
||||
this.view = view;
|
||||
this.cursor = cursor;
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ const handlers = {
|
||||
ws.send("i" + config.generation);
|
||||
}
|
||||
},
|
||||
[MessageId.hot_update](view) {
|
||||
[MessageId.hot_update](view: DataView<ArrayBuffer>) {
|
||||
const reader = new DataViewReader(view, 1);
|
||||
|
||||
// The code genearting each list is annotated with equivalent "List n"
|
||||
|
||||
Reference in New Issue
Block a user