Skip to content

Commit

Permalink
Release 3.2.1; Fix priority
Browse files Browse the repository at this point in the history
  • Loading branch information
shrinktofit committed Nov 4, 2021
1 parent ee036b6 commit 6e0c33e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tfig",
"version": "3.2.0",
"version": "3.2.1",
"description": "Yet another tool to generate .d.ts bundle.",
"main": "build/gift.js",
"types": "build/gift.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion source/distribute-exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function distributeExports(
typeChecker: ts.TypeChecker,
priorityList: string[] = [],
) {
const parsedPriorityList = priorityList.map((id) => `"${id[0]}"`);
const parsedPriorityList = priorityList.map((id) => `"${id}"`);

const exportMap: Map<ts.Symbol, SymbolInfo> = new Map();

Expand Down
8 changes: 4 additions & 4 deletions test/export-priority/specified-priority/input.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@


declare module "a" {
export { C } from 'c';
declare module "aa" {
export { C } from 'cc';
}

declare module "b" { export { C } from 'c'; }
declare module "bb" { export { C } from 'cc'; }

declare module "c" { export class C { } }
declare module "cc" { export class C { } }

0 comments on commit 6e0c33e

Please sign in to comment.