dtslint/docs/prefer-declare-function.md

16 строки
227 B
Markdown

# prefer-declare-function
Prefer to declare a function using the `function` keyword instead of a variable of function type.
**Bad**:
```ts
export const f: () => number;
```
**Good**:
```ts
export function f(): number;
```