Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
21 lines (15 loc) · 390 Bytes

strict-export-declare-modifiers.md

File metadata and controls

21 lines (15 loc) · 390 Bytes

strict-export-declare-modifiers

Avoid adding the declare keyword unnecessarily. Do add the export keyword unnecessarily, because sometimes it is necessary and we want to be consistent.

Bad:

export declare function f(): void;
declare function g(): void;
interface I {}

Good:

export function f(): void;
export function g(): void;
export interface I {}