Skip to content

Commit 32b2396

Browse files
author
avin_kumar
committed
fixed tempalate issue for typechecking
1 parent 142c861 commit 32b2396

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/app/src/app/utils/template-color.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { decorateSelector } from '@codesandbox/common/lib/theme';
22
import { Sandbox, Template } from '@codesandbox/common/lib/types';
3+
import TEMPLATE from '@codesandbox/common/lib/templates/template';
34

4-
export const templateColor = (sandbox: Sandbox, templateDef: Template) => {
5+
export const templateColor = (
6+
sandbox: Sandbox,
7+
templateDef: Template | TEMPLATE
8+
) => {
59
if (sandbox && sandbox.customTemplate) {
610
return decorateSelector(() => sandbox.customTemplate.color);
711
}

0 commit comments

Comments
 (0)