File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
packages/typescript/src/lib Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' fumadocs-typescript ' : patch
3+ ---
4+
5+ Fix errors on special keys
Original file line number Diff line number Diff line change 11import type { Root } from 'mdast' ;
22import type { Transformer } from 'unified' ;
3- import type { ExpressionStatement , ObjectExpression , Property } from 'estree' ;
4- import type { Program } from 'estree' ;
3+ import type {
4+ ExpressionStatement ,
5+ ObjectExpression ,
6+ Program ,
7+ Property ,
8+ } from 'estree' ;
59import { createGenerator , type DocEntry , type Generator } from '@/lib/base' ;
610import { renderMarkdownToHast } from '@/markdown' ;
711import { valueToEstree } from 'estree-util-value-to-estree' ;
@@ -48,8 +52,8 @@ async function mapProperty(
4852 shorthand : false ,
4953 computed : false ,
5054 key : {
51- type : 'Identifier ' ,
52- name : entry . name ,
55+ type : 'Literal ' ,
56+ value : entry . name ,
5357 } ,
5458 kind : 'init' ,
5559 value,
You can’t perform that action at this time.
0 commit comments