mirror of
https://github.com/jwetzell/rttrp-js.git
synced 2026-08-22 15:29:08 +00:00
switch to tsdown
This commit is contained in:
@@ -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,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,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,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,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,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,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,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,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,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,4 +1,4 @@
|
||||
import { RTTrPHeader } from '../models';
|
||||
import type { RTTrPHeader } from '../models';
|
||||
|
||||
export default (bytes: Uint8Array): RTTrPHeader => {
|
||||
if (bytes.length < 18) {
|
||||
|
||||
Reference in New Issue
Block a user