Skip to content

Commit

Permalink
Improve types for APIExpanders, export all (#5918)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh authored Mar 25, 2024
1 parent c136691 commit debefe2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 65 deletions.
1 change: 1 addition & 0 deletions packages/types/news/5918.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve APIExpanders Types, export all @sneridagh
62 changes: 0 additions & 62 deletions packages/types/src/config/Content.d.ts

This file was deleted.

10 changes: 7 additions & 3 deletions packages/types/src/config/Settings.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
type apiExpandersType =
| { match: string; GET_CONTENT: string[] }
| {
[key: string]: string[];
}
| { match: string; querystring: { [key: string]: unknown } };
match: string;
GET_CONTENT: string[];
querystring:
| { [key: string]: string }
| (() => { [key: string]: string });
};

export interface SettingsConfig {
[key: string]: unknown;
Expand Down
3 changes: 3 additions & 0 deletions packages/types/src/config/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ export type ConfigData = {

export { SettingsConfig, BlocksConfig, ViewsConfig, WidgetsConfig };
export * from './Blocks';
export * from './Settings';
export * from './Slots';
export * from './Views';
export * from './Widgets';
1 change: 1 addition & 0 deletions packages/types/src/content/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ export interface Content {

export interface CreateContentResponse extends Content {}
export interface UpdateContentResponse extends Content {}
export * from './common';

0 comments on commit debefe2

Please sign in to comment.