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

Latest commit

 

History

History
15 lines (10 loc) · 227 Bytes

prefer-declare-function.md

File metadata and controls

15 lines (10 loc) · 227 Bytes

prefer-declare-function

Prefer to declare a function using the function keyword instead of a variable of function type.

Bad:

export const f: () => number;

Good:

export function f(): number;