mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 18:38:15 +01:00
Replace typescript compiler with native tsgo compiler
This commit is contained in:
@@ -4,6 +4,7 @@ import type { ReactNode } from 'react';
|
||||
import React, { memo, useCallback, useEffect } from 'react';
|
||||
import type { Placement } from 'react-aria';
|
||||
import { DialogTrigger } from 'react-aria-components';
|
||||
// @ts-expect-error - Needs tinykeys to update package.json type resolution
|
||||
import { createKeybindingsHandler } from 'tinykeys';
|
||||
import { FunPickerTabKey } from './constants.dom.js';
|
||||
import { FunPopover } from './base/FunPopover.dom.js';
|
||||
|
||||
@@ -94,7 +94,7 @@ async function fetchSegment(
|
||||
contentLength: number,
|
||||
doFetchBytesViaProxy: typeof fetchBytesViaProxy,
|
||||
signal?: AbortSignal
|
||||
): Promise<ArrayBufferView> {
|
||||
): Promise<Uint8Array<ArrayBuffer>> {
|
||||
const { data, response } = await doFetchBytesViaProxy({
|
||||
method: 'GET',
|
||||
url,
|
||||
@@ -122,7 +122,7 @@ async function fetchSegment(
|
||||
'Unexpected response buffer byte length'
|
||||
);
|
||||
|
||||
let slice: ArrayBufferView;
|
||||
let slice: Uint8Array<ArrayBuffer>;
|
||||
// Trim duplicate bytes from start of last segment
|
||||
if (segmentRange.sliceStart > 0) {
|
||||
slice = data.subarray(segmentRange.sliceStart);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import { focusSafely, getFocusableTreeWalker } from '@react-aria/focus';
|
||||
import type { ReactNode, RefObject } from 'react';
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
// @ts-expect-error - Needs tinykeys to update package.json type resolution
|
||||
import { createKeybindingsHandler } from 'tinykeys';
|
||||
import { strictAssert } from '../../../util/assert.std.js';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user