add repo-wide typechecking
Some checks are pending
CI / Validate (push) Waiting to run

This commit is contained in:
dirtydishes 2026-05-29 02:19:30 -04:00
parent 85ad7f7387
commit e9e2723c28
30 changed files with 380 additions and 44 deletions

View file

@ -380,7 +380,7 @@ const decodePayload = (data: WebSocket.RawData): unknown => {
return decode(new Uint8Array(data.buffer, data.byteOffset, data.byteLength));
}
return decode(new Uint8Array(data as ArrayBuffer));
return decode(new Uint8Array(data as unknown as ArrayBuffer));
};
const parseTimestamp = (value: string): number => {

View file

@ -157,7 +157,7 @@ const nbboHistoryByContract: ContextHistory<OptionNBBO> = new Map();
const equityQuoteHistoryByUnderlying: ContextHistory<EquityQuote> = new Map();
const OPTION_CONTEXT_PRUNE_INTERVAL_MS = 60_000;
const pruneContextHistory = <T extends { ts: number }>(
const pruneContextHistory = <T extends { ts: number; seq: number }>(
history: ContextHistory<T>,
maxKeys: number,
ttlMs: number,

View file

@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"types": []
"types": ["bun"]
},
"include": ["src/**/*.ts"]
}