File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/site-kit/src/lib/markdown Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -138,13 +138,12 @@ export async function render_content_markdown(
138
138
const cached_snippet = SNIPPET_CACHE . get ( source + language + current ) ;
139
139
if ( cached_snippet . code ) return cached_snippet . code ;
140
140
141
- /** @type {SnippetOptions } */
142
- const options = { file : null , link : null , copy : true } ;
141
+ const options : SnippetOptions = { file : null , link : null , copy : true } ;
143
142
144
143
source = collect_options ( source , options ) ;
145
144
source = adjust_tab_indentation ( source , language ) ;
146
145
147
- let version_class = '' ;
146
+ let version_class : 'ts-version' | 'js-version' | '' = '' ;
148
147
if ( / ^ g e n e r a t e d - ( t s | s v e l t e ) $ / . test ( language ) ) {
149
148
language = language . replace ( 'generated-' , '' ) ;
150
149
version_class = 'ts-version' ;
You can’t perform that action at this time.
0 commit comments