Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Revert "refactor: remove unused extension"
Browse files Browse the repository at this point in the history
This reverts commit c20037d.
  • Loading branch information
axetroy committed May 5, 2020
1 parent 479ecd2 commit 25b190b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/extension.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import * as path from "path";

export type Extension = ".ts" | ".tsx" | ".d.ts" | ".js" | ".jsx" | ".wasm";
export type Extension =
| ".ts"
| ".tsx"
| ".d.ts"
| ".js"
| ".jsx"
| ".wasm"
| "";

export function getExtensionFromFile(filename: string): Extension {
const extName = path.extname(filename);
Expand Down

0 comments on commit 25b190b

Please sign in to comment.