This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** biome-ignore-all lint/performance/useTopLevelRegex: need to use top-level regex */ | |
| /** biome-ignore-all lint/performance/noAwaitInLoops: need to use await inside loops */ | |
| import { readdir, stat } from "node:fs/promises"; | |
| import { dirname, extname, relative, resolve } from "node:path"; | |
| import ts from "typescript"; | |
| const SRC_DIR = resolve("src"); | |
| const DRY_RUN = process.argv.includes("--dry-run"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare const vecSpaceBrand: unique symbol; | |
| declare const vecUnitBrand: unique symbol; | |
| type VecCore<N extends number, Space extends string> = Readonly<{ | |
| readonly n: N; | |
| readonly data: Float64Array; | |
| readonly [vecSpaceBrand]?: Space; | |
| }>; | |
| export type VecLike<N extends number = number, Space extends string = "default"> = VecCore<N, Space>; |