You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportfunctioncomputed<Kextendsstring|symbol>(...watchedProps: K[]){if(watchedProps.length<1)thrownewError('@computed() decorator must have at least one property argument');return<V,TextendsRecord<K,any>>(_target: T,_prop: string|symbol,desc: TypedPropertyDescriptor<V>)=>{if(!desc.get)thrownewError('The `@computed()` decorator must be used on `get` method.');if(desc.set)thrownewError('The `@computed()` decorator cannot be used with `set` method.');if(desc.value)thrownewError('The `@computed()` decorator cannot be used with a regular function.');// ....};}
I am making a @computed() decorator (caches result until one of the provided props changes), and I stumbled upon this weird coloring issue when I split up a long line. My guess is that it has something to do with TSX/JSX.
The text was updated successfully, but these errors were encountered:
TS and JS Grammar Extension version: 0.0.45 / latest
Code
I am making a
@computed()
decorator (caches result until one of the provided props changes), and I stumbled upon this weird coloring issue when I split up a long line. My guess is that it has something to do withTSX/JSX
.The text was updated successfully, but these errors were encountered: