Replace typescript compiler with native tsgo compiler

This commit is contained in:
Jamie
2026-03-18 11:26:18 -07:00
committed by GitHub
parent 5e6af4708b
commit c90ca2b4e0
207 changed files with 1819 additions and 1270 deletions

View File

@@ -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';

View File

@@ -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);

View File

@@ -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';