Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Typescript bugfix: Allow options for extend.
Browse files Browse the repository at this point in the history
  • Loading branch information
apepper authored and gcanti committed Nov 15, 2018
1 parent 85d1521 commit ec480cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ interface Interface<T> extends Type<T> {
strict: boolean;
};
update: Update<T>;
extend<E extends T>(mixins: StructMixin | Array<StructMixin>, name?: string): Struct<E>;
extend<E extends T>(mixins: StructMixin | Array<StructMixin>, name?: string | StructOptions): Struct<E>;
}

export function interface<T>(props: StructProps, name?: string | StructOptions): Interface<T>;
Expand Down

0 comments on commit ec480cb

Please sign in to comment.