From 1283e5f3091f83cd458ac57c6558fdf3a72668ab Mon Sep 17 00:00:00 2001 From: Maritaria Date: Fri, 27 May 2022 12:41:09 +0200 Subject: [PATCH] Declare config type for Group node --- src/Group.ts | 4 +++- src/index-types.d.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Group.ts b/src/Group.ts index 4ebb0bd5..8992aa27 100644 --- a/src/Group.ts +++ b/src/Group.ts @@ -1,9 +1,11 @@ import { Util } from './Util'; -import { Container } from './Container'; +import { Container, ContainerConfig } from './Container'; import { _registerNode } from './Global'; import { Node } from './Node'; import { Shape } from './Shape'; +export interface GroupConfig extends ContainerConfig {} + /** * Group constructor. Groups are used to contain shapes or other groups. * @constructor diff --git a/src/index-types.d.ts b/src/index-types.d.ts index cd6482eb..ab517869 100644 --- a/src/index-types.d.ts +++ b/src/index-types.d.ts @@ -83,6 +83,7 @@ declare namespace Konva { export const Group: typeof import('./Group').Group; export type Group = import('./Group').Group; + export type GroupConfig = import('./Group').GroupConfig; export const DD: typeof import('./DragAndDrop').DD;