Skip to content

Commit

Permalink
Merge pull request #138 from paoloricciuti/metaprops-interface
Browse files Browse the repository at this point in the history
fix: move MetaProps to its own declaration to allow for overrides
  • Loading branch information
JReinhold authored Sep 13, 2023
2 parents 878d829 + c764f02 commit b95af5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ interface TemplateProps extends BaseAnnotations<any, DecoratorReturnType> {
id?: string;
}

interface MetaProps extends (BaseMeta<any> & BaseAnnotations<any, DecoratorReturnType>) { }

interface Slots {
default: {
args: any;
Expand All @@ -54,7 +56,7 @@ interface Slots {
/**
* Meta.
*/
export class Meta extends SvelteComponent<BaseMeta<any> & BaseAnnotations<any, DecoratorReturnType>> { }
export class Meta extends SvelteComponent<MetaProps> { }
/**
* Story.
*/
Expand Down

0 comments on commit b95af5e

Please sign in to comment.