The decorator returned by Span specifies the propertyKey field as string, while the TypeScript MethodDecorator type requires it to allow symbol as well.
This is relevant as it can cause type conflicts when used with functions that expect a MethodDecorator. An example of this is the decorate-all package used to apply a decorator to all methods of a class.
This PR updates the typing and adds a unit test for symbols.
The decorator returned by
Span
specifies thepropertyKey
field asstring
, while the TypeScriptMethodDecorator
type requires it to allowsymbol
as well.This is relevant as it can cause type conflicts when used with functions that expect a
MethodDecorator
. An example of this is the decorate-all package used to apply a decorator to all methods of a class.This PR updates the typing and adds a unit test for symbols.