From 2c411f5317290430d5d1b218521a1a98d8eb7a94 Mon Sep 17 00:00:00 2001 From: Chris Reeves Date: Wed, 15 Aug 2018 14:40:27 -0400 Subject: [PATCH] correct return type for extendWith typings - fixes #3259 --- typings/ractive.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typings/ractive.d.ts b/typings/ractive.d.ts index 1bcba3e839..d7110035f2 100644 --- a/typings/ractive.d.ts +++ b/typings/ractive.d.ts @@ -1013,7 +1013,7 @@ export interface Static = Ractive> { extend = ExtendOpts>(opts?: V): Static>; /** Create a new component with this constuuctor as a starting point using the given constructor. */ - extendWith, V extends InitOpts = InitOpts, W extends ExtendOpts = ExtendOpts>(c: Constructor, opts?: W): void; + extendWith, V extends InitOpts = InitOpts, W extends ExtendOpts = ExtendOpts>(c: Constructor, opts?: W): Static>; /** Get a Context for the given node or selector. */ getContext(nodeOrQuery: HTMLElement | string): ContextHelper; @@ -1484,7 +1484,7 @@ export class Ractive = Ractive> { static extend(opts?: ExtendOpts): Static>; /** Create a new component with this constuuctor as a starting point using the given constructor. */ - static extendWith, V extends InitOpts = InitOpts, W extends ExtendOpts = ExtendOpts>(c: Constructor, opts?: W): void; + static extendWith, V extends InitOpts = InitOpts, W extends ExtendOpts = ExtendOpts>(c: Constructor, opts?: W): Static>; /** Get a Context for the given node or selector. */ static getContext(nodeOrQuery: HTMLElement | string): ContextHelper;