Skip to content

Commit fbb7939

Browse files
committed
feat(command-flow): assignTypeDerivedProperties -> extendType
1 parent da108f2 commit fbb7939

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

packages/command-flow/utilities/src/miscellaneous.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ export function createPseudoType<T>(
77
return { [Symbol.hasInstance]: predicate } as any;
88
}
99

10-
export function assignTypeDerivedProperties<
10+
export function extendType<
1111
T extends Type<any>,
12-
Extras extends Record<string, unknown>,
12+
Extension extends Record<string, unknown>,
1313
>(
1414
type: T,
15-
derivation: (context: {
15+
extension: (context: {
1616
type: T;
1717
$instance: TypeContainer<InstanceType<T>>;
18-
}) => Extras,
19-
): T & Extras {
20-
return Object.assign(type, derivation({ type, $instance: $type() }));
18+
}) => Extension,
19+
): T & Extension {
20+
return Object.assign(type, extension({ type, $instance: $type() }));
2121
}

0 commit comments

Comments
 (0)