File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,10 @@ const commonProps: (keyof ImportCommon)[] = [
1212 'priority' ,
1313 'disabled' ,
1414 'dtsDisabled' ,
15+ 'declarationType' ,
1516 'meta' ,
1617 'type' ,
18+ 'typeFrom' ,
1719]
1820
1921export async function resolvePreset ( preset : Preset ) : Promise < Import [ ] > {
Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ it('dts', async () => {
4545 } ,
4646 ] ,
4747 } ,
48+ {
49+ from : 'pkg/src' ,
50+ typeFrom : 'pkg/dts' ,
51+ imports : [ 'pkg' ] ,
52+ } ,
4853 ] ,
4954 dirs : [
5055 './playground/composables/**' ,
@@ -81,6 +86,7 @@ it('dts', async () => {
8186 const myfunc2: typeof import('<root>/playground/composables/nested/bar/named')['myfunc2']
8287 const named: typeof import('<root>/playground/composables/nested/bar/index')['named']
8388 const nested: typeof import('<root>/playground/composables/nested/index')['default']
89+ const pkg: typeof import('pkg/dts')['pkg']
8490 const reactive: typeof import('vue')['reactive']
8591 const ref: typeof import('vue')['ref']
8692 const subFoo: typeof import('<root>/playground/composables/nested/bar/sub/index')['subFoo']
You can’t perform that action at this time.
0 commit comments