@tldraw/state
Version:
tldraw infinite canvas SDK (state).
23 lines (19 loc) • 432 B
text/typescript
let didWarnComputedGetter = false
export function logComputedGetterWarning() {
if (didWarnComputedGetter) return
didWarnComputedGetter = true
console.warn(
`Using \`\` as a decorator for getters is deprecated and will be removed in the near future. Please refactor to use \`\` as a decorator for methods.
// Before
get foo() {
return 'foo'
}
// After
getFoo() {
return 'foo'
}
`
)
}