Prefer type
to interface
in .d.ts
files
This commit is contained in:
6
ts/firstline.d.ts
vendored
6
ts/firstline.d.ts
vendored
@@ -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,
|
||||
|
Reference in New Issue
Block a user