Skip to content

Commit

Permalink
Add indexer API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jun 9, 2024
1 parent c69d536 commit a57e45c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/types/src/modules/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export type IndexEntry = StoryIndexEntry | DocsIndexEntry;
export type BaseIndexInput = {
/** The file to import from e.g. the story file. */
importPath: Path;
/** The raw path/package to the file that provides meta.component, if one exists */
/** The raw path/package of the file that provides meta.component, if one exists */
rawComponentPath?: Path;
/** The name of the export to import. */
exportName: ExportName;
Expand Down
7 changes: 7 additions & 0 deletions docs/api/main-config-indexers.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Type:
exportName: string;
importPath: string;
type: 'story';
rawComponentPath?: string;
metaId?: string;
name?: string;
tags?: string[];
Expand Down Expand Up @@ -133,6 +134,12 @@ Type: `'story'`

The type of entry.

##### `rawComponentPath`

Type: `string`

The raw path/package of the file that provides `meta.component`, if one exists.

##### `metaId`

Type: `string`
Expand Down

0 comments on commit a57e45c

Please sign in to comment.