Skip to content

Commit

Permalink
wip: Pull in Lang type from old Shiki
Browse files Browse the repository at this point in the history
  • Loading branch information
trillium committed May 10, 2024
1 parent 16fdb72 commit 0fb7e81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/test-case-component/src/generateHtml.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { getHighlighter, createCssVariablesTheme } from "shiki"
import { Lang } from "./types";

Check failure on line 2 in packages/test-case-component/src/generateHtml.ts

View workflow job for this annotation

GitHub Actions / Test (macos-latest, stable)

Module '"./types"' declares 'Lang' locally, but it is not exported.

Check failure on line 2 in packages/test-case-component/src/generateHtml.ts

View workflow job for this annotation

GitHub Actions / test-docs-build

Module '"./types"' declares 'Lang' locally, but it is not exported.

Check failure on line 2 in packages/test-case-component/src/generateHtml.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, stable)

Module '"./types"' declares 'Lang' locally, but it is not exported.

Check failure on line 2 in packages/test-case-component/src/generateHtml.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest, stable)

Module '"./types"' declares 'Lang' locally, but it is not exported.

Check failure on line 2 in packages/test-case-component/src/generateHtml.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest, legacy)

Module '"./types"' declares 'Lang' locally, but it is not exported.

import { renderToHtml, HatType, SelectionType, Token } from "./renderToHtml";

Expand Down
1 change: 1 addition & 0 deletions packages/test-case-component/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type Lang = 'abap' | 'actionscript-3' | 'ada' | 'apache' | 'apex' | 'apl' | 'applescript' | 'ara' | 'asm' | 'astro' | 'awk' | 'ballerina' | 'bat' | 'batch' | 'beancount' | 'berry' | 'be' | 'bibtex' | 'bicep' | 'blade' | 'c' | 'cadence' | 'cdc' | 'clarity' | 'clojure' | 'clj' | 'cmake' | 'cobol' | 'codeql' | 'ql' | 'coffee' | 'cpp' | 'crystal' | 'csharp' | 'c#' | 'cs' | 'css' | 'cue' | 'cypher' | 'cql' | 'd' | 'dart' | 'dax' | 'diff' | 'docker' | 'dockerfile' | 'dream-maker' | 'elixir' | 'elm' | 'erb' | 'erlang' | 'erl' | 'fish' | 'fsharp' | 'f#' | 'fs' | 'gdresource' | 'gdscript' | 'gdshader' | 'gherkin' | 'git-commit' | 'git-rebase' | 'glimmer-js' | 'gjs' | 'glimmer-ts' | 'gts' | 'glsl' | 'gnuplot' | 'go' | 'graphql' | 'groovy' | 'hack' | 'haml' | 'handlebars' | 'hbs' | 'haskell' | 'hs' | 'hcl' | 'hjson' | 'hlsl' | 'html' | 'http' | 'imba' | 'ini' | 'properties' | 'java' | 'javascript' | 'js' | 'jinja-html' | 'jison' | 'json' | 'json5' | 'jsonc' | 'jsonl' | 'jsonnet' | 'jssm' | 'fsl' | 'jsx' | 'julia' | 'kotlin' | 'kusto' | 'kql' | 'latex' | 'less' | 'liquid' | 'lisp' | 'logo' | 'lua' | 'make' | 'makefile' | 'markdown' | 'md' | 'marko' | 'matlab' | 'mdx' | 'mermaid' | 'narrat' | 'nar' | 'nextflow' | 'nf' | 'nginx' | 'nim' | 'nix' | 'objective-c' | 'objc' | 'objective-cpp' | 'ocaml' | 'pascal' | 'perl' | 'php' | 'plsql' | 'postcss' | 'powerquery' | 'powershell' | 'ps' | 'ps1' | 'prisma' | 'prolog' | 'proto' | 'pug' | 'jade' | 'puppet' | 'purescript' | 'python' | 'py' | 'r' | 'raku' | 'perl6' | 'razor' | 'reg' | 'rel' | 'riscv' | 'rst' | 'ruby' | 'rb' | 'rust' | 'rs' | 'sas' | 'sass' | 'scala' | 'scheme' | 'scss' | 'shaderlab' | 'shader' | 'shellscript' | 'bash' | 'console' | 'sh' | 'shell' | 'zsh' | 'smalltalk' | 'solidity' | 'sparql' | 'sql' | 'ssh-config' | 'stata' | 'stylus' | 'styl' | 'svelte' | 'swift' | 'system-verilog' | 'tasl' | 'tcl' | 'tex' | 'toml' | 'tsx' | 'turtle' | 'twig' | 'typescript' | 'ts' | 'v' | 'vb' | 'cmd' | 'verilog' | 'vhdl' | 'viml' | 'vim' | 'vimscript' | 'vue-html' | 'vue' | 'vyper' | 'vy' | 'wasm' | 'wenyan' | '文言' | 'wgsl' | 'wolfram' | 'xml' | 'xsl' | 'yaml' | 'yml' | 'zenscript';

0 comments on commit 0fb7e81

Please sign in to comment.