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
5 changed files with 27 additions and 27 deletions

6
ts/firstline.d.ts vendored
View File

@@ -1,11 +1,11 @@
// Copyright 2021 Signal Messenger, LLC
// Copyright 2021-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
declare module 'firstline' {
interface FirstLineOpts {
type FirstLineOpts = {
encoding?: BufferEncoding;
lineEnding?: '\n';
}
};
export default function firstLine(
filePath: string,