Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Auto-fix for callable-types removes export qualifier #2941

Closed
dphilipson opened this issue Jun 22, 2017 · 0 comments · Fixed by #2962
Closed

Auto-fix for callable-types removes export qualifier #2941

dphilipson opened this issue Jun 22, 2017 · 0 comments · Fixed by #2962

Comments

@dphilipson
Copy link

dphilipson commented Jun 22, 2017

Bug Report

  • TSLint version: 5.4.3
  • TypeScript version: 2.3.4
  • Running TSLint via: VSCode

TypeScript code being linted

export interface Runnable {
    (): void;
}

with tslint.json configuration:

{
  "extends": "tslint:recommended",
}

Actual behavior

When running fix, the callable-types rule changes this to

type Runnable = () => void;

Expected behavior

It should preserve the export, changing this instead to

export type Runnable = () => void;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants