Skip to content

Commit 447c3e1

Browse files
committed
fix(core): adjust NgtAttachable type to accept string | number array (for index)
1 parent dc21f09 commit 447c3e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: libs/core/src/lib/types.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,10 @@ export type NgtAttachFunction<TChild = any, TParent = any> = (
191191
store: NgtSignalStore<NgtState>,
192192
) => void | (() => void);
193193

194-
export type NgtAttachable<TChild = any, TParent = any> = NgtAttachFunction<TChild, TParent> | string | string[];
194+
export type NgtAttachable<TChild = any, TParent = any> =
195+
| NgtAttachFunction<TChild, TParent>
196+
| string
197+
| (string | number)[];
195198

196199
export interface NgtAfterAttach<
197200
TChild extends NgtInstanceNode = NgtInstanceNode,

0 commit comments

Comments
 (0)