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:
@@ -3,7 +3,7 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import LinkifyIt from 'linkify-it';
|
||||
import LinkifyIt, { type Match as LinkifyItMatch } from 'linkify-it';
|
||||
|
||||
import type { RenderTextCallbackType } from '../../types/Util.std.js';
|
||||
import {
|
||||
@@ -335,7 +335,7 @@ export function Linkify(props: Props): React.JSX.Element {
|
||||
|
||||
const chunkData: Array<{
|
||||
chunk: string;
|
||||
matchData: ReadonlyArray<LinkifyIt.Match>;
|
||||
matchData: ReadonlyArray<LinkifyItMatch>;
|
||||
}> = splitByEmoji(text).map(({ type, value: chunk }) => {
|
||||
if (type === 'text') {
|
||||
return { chunk, matchData: linkify.match(chunk) || [] };
|
||||
|
||||
@@ -273,7 +273,7 @@ export function ConversationDetails({
|
||||
}
|
||||
makeRequest={async (
|
||||
options: Readonly<{
|
||||
avatar?: undefined | Uint8Array;
|
||||
avatar?: undefined | Uint8Array<ArrayBuffer>;
|
||||
description?: string;
|
||||
title?: string;
|
||||
}>
|
||||
|
||||
@@ -31,7 +31,7 @@ type PropsType = {
|
||||
initiallyFocusDescription: boolean;
|
||||
makeRequest: (
|
||||
_: Readonly<{
|
||||
avatar?: undefined | Uint8Array;
|
||||
avatar?: undefined | Uint8Array<ArrayBuffer>;
|
||||
description?: string;
|
||||
title?: undefined | string;
|
||||
}>
|
||||
@@ -70,7 +70,7 @@ export function EditConversationAttributesModal({
|
||||
const startingAvatarUrlRef = useRef<undefined | string>(externalAvatarUrl);
|
||||
|
||||
const [editingAvatar, setEditingAvatar] = useState(false);
|
||||
const [avatar, setAvatar] = useState<undefined | Uint8Array>();
|
||||
const [avatar, setAvatar] = useState<undefined | Uint8Array<ArrayBuffer>>();
|
||||
const [rawTitle, setRawTitle] = useState(externalTitle);
|
||||
const [rawGroupDescription, setRawGroupDescription] = useState(
|
||||
externalGroupDescription
|
||||
@@ -135,7 +135,7 @@ export function EditConversationAttributesModal({
|
||||
event.preventDefault();
|
||||
|
||||
const request: {
|
||||
avatar?: undefined | Uint8Array;
|
||||
avatar?: undefined | Uint8Array<ArrayBuffer>;
|
||||
description?: string;
|
||||
title?: string;
|
||||
} = {};
|
||||
|
||||
Reference in New Issue
Block a user