Skip to content

Commit

Permalink
correct return type for extendWith typings - fixes #3259
Browse files Browse the repository at this point in the history
  • Loading branch information
evs-chris committed Aug 15, 2018
1 parent d24b195 commit 2c411f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typings/ractive.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ export interface Static<T extends Ractive<T> = Ractive> {
extend<U, V extends ExtendOpts<T> = ExtendOpts<T>>(opts?: V): Static<Ractive<T & U>>;

/** Create a new component with this constuuctor as a starting point using the given constructor. */
extendWith<U extends Ractive<U>, V extends InitOpts<U> = InitOpts<U>, W extends ExtendOpts<U> = ExtendOpts<U>>(c: Constructor<U, V>, opts?: W): void;
extendWith<U extends Ractive<U>, V extends InitOpts<U> = InitOpts<U>, W extends ExtendOpts<U> = ExtendOpts<U>>(c: Constructor<U, V>, opts?: W): Static<Ractive<T & U>>;

/** Get a Context for the given node or selector. */
getContext(nodeOrQuery: HTMLElement | string): ContextHelper;
Expand Down Expand Up @@ -1484,7 +1484,7 @@ export class Ractive<T extends Ractive<T> = Ractive<any>> {
static extend<U>(opts?: ExtendOpts<Ractive & U>): Static<Ractive<Ractive & U>>;

/** Create a new component with this constuuctor as a starting point using the given constructor. */
static extendWith<U extends Ractive<U>, V extends InitOpts<U> = InitOpts<U>, W extends ExtendOpts<U> = ExtendOpts<U>>(c: Constructor<U, V>, opts?: W): void;
static extendWith<U extends Ractive<U>, V extends InitOpts<U> = InitOpts<U>, W extends ExtendOpts<U> = ExtendOpts<U>>(c: Constructor<U, V>, opts?: W): Static<Ractive<Ractive & U>>;

/** Get a Context for the given node or selector. */
static getContext(nodeOrQuery: HTMLElement | string): ContextHelper;
Expand Down

0 comments on commit 2c411f5

Please sign in to comment.