Refactor the ElementDescriptor type

This commit is contained in:
Manuel Thalmann 2022-12-15 10:55:46 +01:00
parent 5ff474a7ea
commit c94dc1cb8f
No known key found for this signature in database
GPG key ID: 5FD9AD3CCDDBD27B

2
src/js/types.d.ts vendored
View file

@ -48,7 +48,7 @@ type TextDescriptor = string;
type ElementDescriptor = [
tag: string,
// eslint-disable-next-line @typescript-eslint/array-type
...args: (NodeDescriptor | Record<string, unknown>)[]
...args: (NodeDescriptor | (Partial<HTMLElement> & Record<string, any>))[]
];
/**