We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed5dfb8 commit 3842748Copy full SHA for 3842748
packages/app/src/app/utils/get-type.js
@@ -49,7 +49,7 @@ export function getMode(title: string = '') {
49
}
50
51
const tsRegex = /\.tsx?$/;
52
-function isJS(title: string) {
+function isTS(title: string) {
53
if (
54
tsRegex.test(title) ||
55
title === 'tsconfig.json' ||
@@ -60,9 +60,9 @@ function isJS(title: string) {
60
61
62
export default function getType(title: string) {
63
- const isJSType = isJS(title);
64
- if (isJSType) {
65
- return isJSType;
+ const isTSType = isTS(title);
+ if (isTSType) {
+ return isTSType;
66
67
68
return getMode(title);
0 commit comments