Skip to content

Commit 6910962

Browse files
committed
fix types
1 parent 105f9df commit 6910962

2 files changed

Lines changed: 35 additions & 34 deletions

File tree

src/livecodes/UI/command-menu-actions.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ export const getCommandMenuActions = ({
292292
'reason',
293293
'ocaml',
294294
'python',
295-
'pyodide',
296295
'python-wasm',
297296
'r',
298297
'ruby',
@@ -302,7 +301,6 @@ export const getCommandMenuActions = ({
302301
'php',
303302
'php-wasm',
304303
'cpp',
305-
'clang',
306304
'cpp-wasm',
307305
'java',
308306
'csharp-wasm',

src/sdk/models.ts

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ export interface Compilers {
13811381
export type Template = Pick<ContentConfig, 'title' | 'markup' | 'style' | 'script'> &
13821382
Partial<ContentConfig> & {
13831383
name: TemplateName;
1384-
aliases?: TemplateName[];
1384+
aliases?: TemplateAlias[];
13851385
thumbnail: string;
13861386
tools?: Config['tools'];
13871387
autotest?: Config['autotest'];
@@ -1390,15 +1390,12 @@ export type Template = Pick<ContentConfig, 'title' | 'markup' | 'style' | 'scrip
13901390
export type TemplateName =
13911391
| 'blank'
13921392
| 'javascript'
1393-
| 'js'
13941393
| 'typescript'
1395-
| 'ts'
13961394
| 'react'
13971395
| 'react-native'
13981396
| 'vue2'
13991397
| 'vue'
14001398
| 'angular'
1401-
| 'ng'
14021399
| 'preact'
14031400
| 'svelte'
14041401
| 'solid'
@@ -1414,81 +1411,87 @@ export type TemplateName =
14141411
| 'jest'
14151412
| 'jest-react'
14161413
| 'bootstrap'
1417-
| 'bs'
14181414
| 'tailwindcss'
1419-
| 'tailwind'
1420-
| 'tw'
14211415
| 'shadcn-ui'
14221416
| 'daisyui'
14231417
| 'd3'
14241418
| 'phaser'
14251419
| 'coffeescript'
1426-
| 'coffee'
14271420
| 'livescript'
1428-
| 'ls'
14291421
| 'civet'
14301422
| 'clio'
14311423
| 'imba'
14321424
| 'rescript'
14331425
| 'reason'
14341426
| 'ocaml'
14351427
| 'python'
1436-
| 'py'
1437-
| 'pyodide'
14381428
| 'python-wasm'
1439-
| 'py-wasm'
14401429
| 'r'
1441-
| 'r-lang'
1442-
| 'rlang'
14431430
| 'ruby'
1444-
| 'rb'
14451431
| 'ruby-wasm'
1446-
| 'rb-wasm'
14471432
| 'go'
1448-
| 'golang'
14491433
| 'go-wasm'
1450-
| 'golang-wasm'
14511434
| 'php'
14521435
| 'php-wasm'
14531436
| 'cpp'
1454-
| 'c++'
1455-
| 'clang'
14561437
| 'cpp-wasm'
1457-
| 'c++-wasm'
14581438
| 'java'
14591439
| 'csharp-wasm'
1460-
| 'c#-wasm'
1461-
| 'cs-wasm'
14621440
| 'perl'
1463-
| 'pl'
14641441
| 'lua'
14651442
| 'lua-wasm'
14661443
| 'teal'
14671444
| 'fennel'
14681445
| 'julia'
14691446
| 'scheme'
14701447
| 'commonlisp'
1471-
| 'lisp'
14721448
| 'clojurescript'
1473-
| 'cljs'
14741449
| 'gleam'
14751450
| 'tcl'
14761451
| 'markdown'
1477-
| 'md'
14781452
| 'assemblyscript'
1479-
| 'as'
14801453
| 'wat'
14811454
| 'sql'
14821455
| 'postgresql'
1483-
| 'postgres'
1484-
| 'pg'
1485-
| 'pgsql'
14861456
| 'prolog'
14871457
| 'minizinc'
1488-
| 'mzn'
14891458
| 'blockly'
14901459
| 'diagrams';
14911460

1461+
export type TemplateAlias =
1462+
| 'js'
1463+
| 'ts'
1464+
| 'ng'
1465+
| 'bs'
1466+
| 'tailwind'
1467+
| 'tw'
1468+
| 'coffee'
1469+
| 'ls'
1470+
| 'py'
1471+
| 'pyodide'
1472+
| 'py-wasm'
1473+
| 'r-lang'
1474+
| 'rlang'
1475+
| 'rb'
1476+
| 'rb-wasm'
1477+
| 'golang'
1478+
| 'golang-wasm'
1479+
| 'c++'
1480+
| 'clang'
1481+
| 'c++-wasm'
1482+
| 'c#-wasm'
1483+
| 'cs-wasm'
1484+
| 'pl'
1485+
| 'lisp'
1486+
| 'cljs'
1487+
| 'md'
1488+
| 'as'
1489+
| 'postgres'
1490+
| 'pg'
1491+
| 'pgsql'
1492+
| 'prolog'
1493+
| 'mzn';
1494+
14921495
export interface Tool {
14931496
name: 'console' | 'compiled' | 'tests';
14941497
title: string;

0 commit comments

Comments
 (0)