Prefer type to interface in .d.ts files

This commit is contained in:
Evan Hahn 2022-08-30 21:24:04 +00:00 committed by GitHub
parent 9d7eaa003f
commit 39354b11b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 27 deletions

6
ts/Intl.d.ts vendored
View file

@ -1,4 +1,4 @@
// Copyright 2021 Signal Messenger, LLC
// Copyright 2021-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
declare namespace Intl {
@ -18,11 +18,11 @@ declare namespace Intl {
isWordLike?: boolean;
};
interface Segments {
type Segments = {
containing(index: number): SegmentData;
[Symbol.iterator](): Iterator<SegmentData>;
}
};
// `Intl.Segmenter` is not yet in TypeScript's type definitions, so we add it.
class Segmenter {