index.d.ts 485 B

1234567891011121314
  1. import TypedArrayNames from 'possible-typed-array-names';
  2. declare namespace typedArrayByteOffset {
  3. export type TypedArrayName = typeof TypedArrayNames[number];
  4. export type TypedArrayConstructor = typeof globalThis[TypedArrayName];
  5. export type TypedArray = TypedArrayConstructor['prototype'];
  6. }
  7. declare function typedArrayByteOffset(value: typedArrayByteOffset.TypedArray): number;
  8. declare function typedArrayByteOffset(value: unknown): false;
  9. export = typedArrayByteOffset;