Skip to content

Commit

Permalink
增加导出类型
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-Shan committed Oct 9, 2023
1 parent 8cf89e7 commit 42d7ebd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export * from './fetch/FetchControllerConfig';
export { JsonDataSource } from './datasource/JsonDataSource';
export type { DataSourceConfig } from './datasource/DataSourceConfig';
export type { FetchData } from './fetch/CookieFetcher';
export type { DataSourceRegisterInfo } from './fetch/DataSourceRegisterInfo';

export async function parseConfig<T = FetchControllerConfig>(configStr: string): Promise<T> {
const resolveResult = await JsonRefResolver.resolve(json5.parse(configStr));
Expand Down

0 comments on commit 42d7ebd

Please sign in to comment.