-
Couldn't load subscription status.
- Fork 20
Open
Description
Although I can use the @Memoize() decorator with normal functions, I get an error when using the decorator on class methods.
import {Memoize} from 'typescript-memoize';
class Foo {
@Memoize()
bar(s: string) : string {
return s;
}
} node_modules/typescript-memoize/dist/memoize-decorator.d.ts:6:122
6 export declare function Memoize(args?: MemoizeArgs | MemoizeArgs['hashFunction']): (target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor<any>) => void;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
An argument for 'descriptor' was not provided.
TypeScript Version 5.5.3
jwbth
Metadata
Metadata
Assignees
Labels
No labels