(customName?: string)
| 1 | export function threadable(customName?: string): MethodDecorator { |
| 2 | return function ( |
| 3 | _: unknown, |
| 4 | propertyKey: string | symbol, |
| 5 | descriptor: PropertyDescriptor, |
| 6 | ) { |
| 7 | descriptor.value.prototype.name = customName ?? propertyKey; |
| 8 | descriptor.value.prototype.threadable = true; |
| 9 | }; |
| 10 | } |