switch to tsdown

This commit is contained in:
Joel Wetzell
2026-06-03 22:17:08 -05:00
parent 0ffd2e9623
commit b7fc4d2733
30 changed files with 923 additions and 64 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { ChannelBlock } from '../../models';
import type { ChannelBlock } from '../../models';
export default (bytes: Uint8Array, isLittleEndian: boolean = false): ChannelBlock => {
if (bytes.length !== 5) {
+1 -1
View File
@@ -1,5 +1,5 @@
import { Decoders } from '..';
import { LightingOutput, Universe } from '../../models';
import type { LightingOutput, Universe } from '../../models';
export default (bytes: Uint8Array, isLittleEndian: boolean = false): LightingOutput => {
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
+1 -1
View File
@@ -1,5 +1,5 @@
import { Decoders } from '..';
import { LightingOutput, RTTrPL } from '../../models';
import type { LightingOutput, RTTrPL } from '../../models';
export default (bytes: Uint8Array): RTTrPL => {
if (bytes.byteLength < 18) {
+1 -1
View File
@@ -1,5 +1,5 @@
import { Decoders } from '..';
import { ChannelBlock, Spot } from '../../models';
import type { ChannelBlock, Spot } from '../../models';
export default (bytes: Uint8Array, isLittleEndian: boolean = false): Spot => {
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
+1 -1
View File
@@ -1,5 +1,5 @@
import { Decoders } from '..';
import { Spot, Universe } from '../../models';
import type { Spot, Universe } from '../../models';
export default (bytes: Uint8Array, isLittleEndian: boolean = false): Universe => {
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -1,4 +1,4 @@
import { CentroidAccelVelocity } from '../../models';
import type { CentroidAccelVelocity } from '../../models';
export default (bytes: Uint8Array, isLittleEndian: boolean = false): CentroidAccelVelocity => {
if (bytes.length !== 51) {
+1 -1
View File
@@ -1,4 +1,4 @@
import { CentroidPosition } from '../../models';
import type { CentroidPosition } from '../../models';
export default (bytes: Uint8Array, isLittleEndian: boolean = false): CentroidPosition => {
if (bytes.length !== 29) {
+1 -1
View File
@@ -1,4 +1,4 @@
import { OrientationEuler } from '../../models';
import type { OrientationEuler } from '../../models';
export default (bytes: Uint8Array, isLittleEndian: boolean = false): OrientationEuler => {
if (bytes.length !== 31) {
@@ -1,4 +1,4 @@
import { OrientationQuaternion } from '../../models';
import type { OrientationQuaternion } from '../../models';
export default (bytes: Uint8Array, isLittleEndian: boolean = false): OrientationQuaternion => {
if (bytes.length !== 37) {
+1 -1
View File
@@ -1,5 +1,5 @@
import { Decoders } from '..';
import { RTTrPM, Trackable } from '../../models';
import type { RTTrPM, Trackable } from '../../models';
export default (bytes: Uint8Array): RTTrPM => {
if (bytes.byteLength < 18) {
+1 -1
View File
@@ -1,5 +1,5 @@
import { Decoders } from '..';
import { Trackable, TrackableModule } from '../../models';
import type { Trackable, TrackableModule } from '../../models';
const textDecoder = new TextDecoder('utf-8');
@@ -1,4 +1,4 @@
import { TrackedPointAccelVelocity } from '../../models';
import type { TrackedPointAccelVelocity } from '../../models';
export default (bytes: Uint8Array, isLittleEndian: boolean = false): TrackedPointAccelVelocity => {
if (bytes.length !== 52) {
@@ -1,4 +1,4 @@
import { TrackedPointPosition } from '../../models';
import type { TrackedPointPosition } from '../../models';
export default (bytes: Uint8Array, isLittleEndian: boolean = false): TrackedPointPosition => {
if (bytes.length !== 30) {
@@ -1,5 +1,5 @@
import { Decoders } from '..';
import { ZoneCollisionDetection, ZoneObject } from '../../models';
import type { ZoneCollisionDetection, ZoneObject } from '../../models';
export default (bytes: Uint8Array, isLittleEndian: boolean = false): ZoneCollisionDetection => {
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
+1 -1
View File
@@ -1,4 +1,4 @@
import { ZoneObject } from '../../models';
import type { ZoneObject } from '../../models';
const textDecoder = new TextDecoder('utf-8');
export default (bytes: Uint8Array): ZoneObject => {
const size = bytes[0];
+1 -1
View File
@@ -1,4 +1,4 @@
import { RTTrPHeader } from '../models';
import type { RTTrPHeader } from '../models';
export default (bytes: Uint8Array): RTTrPHeader => {
if (bytes.length < 18) {