mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
19 lines
437 B
TypeScript
19 lines
437 B
TypeScript
// @ts-nocheck
|
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
import { NestedTypeOnlyClass } from './not-used-type'
|
|
|
|
class NestedBase {
|
|
set data(value: string) {
|
|
console.log('data setter in NestedBase')
|
|
}
|
|
}
|
|
class NestedDerived extends NestedBase {
|
|
// No longer triggers a 'console.log'
|
|
// when using 'useDefineForClassFields'.
|
|
data = 10
|
|
|
|
foo?: NestedTypeOnlyClass
|
|
}
|
|
|
|
const d = new NestedDerived()
|