Prefer type
to interface
in .d.ts
files
This commit is contained in:
parent
9d7eaa003f
commit
39354b11b7
5 changed files with 27 additions and 27 deletions
6
ts/Intl.d.ts
vendored
6
ts/Intl.d.ts
vendored
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue