Commit f1eac681 authored by nanahira's avatar nanahira

make alternate optional

parent e41bbe33
...@@ -28,7 +28,7 @@ export class Reflector<M extends StringDict, AM extends StringDict> { ...@@ -28,7 +28,7 @@ export class Reflector<M extends StringDict, AM extends StringDict> {
metadataKey: K, metadataKey: K,
instance: I, instance: I,
key: keyof I & (string | symbol), key: keyof I & (string | symbol),
alternate: any, alternate?: any,
): ArrayValue<AM, K> { ): ArrayValue<AM, K> {
const valueFromClass = this.getArray(metadataKey, instance); const valueFromClass = this.getArray(metadataKey, instance);
const valueFromAlternate = alternate const valueFromAlternate = alternate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment