},
mounted() {
// this call runs while Comp is currentInstance, but
- // the effect for this `$watch` should nontheless be registered with Child
+ // the effect for this `$watch` should nonetheless be registered with Child
this.comp!.$watch(
() => this.show,
() => void 0
expect(instance!.scope.effects.length).toBe(1)
})
- test('watchEffect should keep running if created in a detatched scope', async () => {
+ test('watchEffect should keep running if created in a detached scope', async () => {
const trigger = ref(0)
let countWE = 0
let countW = 0
*/
ssrRender?: Function | null
/**
- * Object containing values this component provides for its descendents
+ * Object containing values this component provides for its descendants
* @internal
*/
provides: Data
emit('my-click', 1)
},
onMousedown: () => {
- emit('myEvent', 1) // validate hypenization
+ emit('myEvent', 1) // validate hyphenation
}
})
}
})
// #3513
- test('scopeId inheritance across ssr-compiled andn on-ssr compiled parent chain', async () => {
+ test('scopeId inheritance across ssr-compiled and on-ssr compiled parent chain', async () => {
const Child = {
ssrRender: (ctx: any, push: any, parent: any, attrs: any) => {
push(`<div${ssrRenderAttrs(attrs)}></div>`)
}
/**
- * Only conerces number-like strings
+ * Only concerns number-like strings
* "123-foo" will be returned as-is
*/
export const toNumber = (val: any): any => {
* and remove them from the big export {} declaration
* otherwise it gets weird in vitepress `defineComponent` call with
* "the inferred type cannot be named without a reference"
- * 3. Append custom agumentations (jsx, macros)
+ * 3. Append custom augmentations (jsx, macros)
* @returns {import('rollup').Plugin}
*/
function patchTypes(pkg) {
)
// 3. during transform:
- // 3.1 files w/ const enum declaration: remove delcaration
+ // 3.1 files w/ const enum declaration: remove declaration
// 3.2 files using const enum: inject into esbuild define
/**
* @type {import('rollup').Plugin}