Skip to content

Commit fd8b19b

Browse files
committed
fix: First parameter for types.on is always array or string
1 parent c3b1af6 commit fd8b19b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export class Types<T = never, U = never> {
241241

242242
if (typeof on === 'string') {
243243
fragments[on] = definition!;
244-
} else if (Array.isArray(on)) {
244+
} else {
245245
on.forEach((key) => {
246246
fragments[key] = definition!;
247247
});

0 commit comments

Comments
 (0)