Skip to content

Commit 495ccd7

Browse files
committed
Simplify types
1 parent 47ae8ac commit 495ccd7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
- run: npm run lint
1616
- name: Test documentation
1717
run: |
18-
npx typedoc src/index.ts --excludePrivate --excludeExternals --treatValidationWarningsAsErrors
18+
npx typedoc src/index.ts --excludePrivate --treatValidationWarningsAsErrors

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ window.inMemoryDatabase = new InMemoryDatabase();
77
window.bracketsManager = new BracketsManager(window.inMemoryDatabase);
88

99
export { BracketsViewer };
10-
export { ToI18nKey, TFunction } from './lang';
1110
export * from './types';

src/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { BracketsViewer } from './main';
55
import { BracketsManager } from 'brackets-manager';
66
import { ToI18nKey, TFunction } from './lang';
77

8+
export type { ToI18nKey, TFunction };
9+
810
declare global {
911
interface Window {
1012
bracketsViewer: BracketsViewer,
@@ -131,7 +133,7 @@ export interface Config {
131133
*
132134
* @default undefined
133135
*/
134-
customRoundName?: (...args: Parameters<RoundNameGetter>) => ReturnType<RoundNameGetter> | undefined,
136+
customRoundName?: RoundNameGetter,
135137

136138
/**
137139
* An optional selector to select the root element.

0 commit comments

Comments
 (0)