chore: fix typo (#7693)

This commit is contained in:
Lioness100 2023-06-10 05:17:41 -04:00 committed by GitHub
parent fd1a3f9599
commit 6277cb994a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions

View File

@ -1000,7 +1000,7 @@ describe('api: watch', () => {
}, },
mounted() { mounted() {
// this call runs while Comp is currentInstance, but // 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.comp!.$watch(
() => this.show, () => this.show,
() => void 0 () => void 0
@ -1171,7 +1171,7 @@ describe('api: watch', () => {
expect(instance!.scope.effects.length).toBe(1) 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) const trigger = ref(0)
let countWE = 0 let countWE = 0
let countW = 0 let countW = 0

View File

@ -256,7 +256,7 @@ export interface ComponentInternalInstance {
*/ */
ssrRender?: Function | null ssrRender?: Function | null
/** /**
* Object containing values this component provides for its descendents * Object containing values this component provides for its descendants
* @internal * @internal
*/ */
provides: Data provides: Data

View File

@ -322,7 +322,7 @@ describe('defineCustomElement', () => {
emit('my-click', 1) emit('my-click', 1)
}, },
onMousedown: () => { onMousedown: () => {
emit('myEvent', 1) // validate hypenization emit('myEvent', 1) // validate hyphenation
} }
}) })
} }

View File

@ -156,7 +156,7 @@ describe('ssr: scopedId runtime behavior', () => {
}) })
// #3513 // #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 = { const Child = {
ssrRender: (ctx: any, push: any, parent: any, attrs: any) => { ssrRender: (ctx: any, push: any, parent: any, attrs: any) => {
push(`<div${ssrRenderAttrs(attrs)}></div>`) push(`<div${ssrRenderAttrs(attrs)}></div>`)

View File

@ -149,7 +149,7 @@ export const looseToNumber = (val: any): any => {
} }
/** /**
* Only conerces number-like strings * Only concerns number-like strings
* "123-foo" will be returned as-is * "123-foo" will be returned as-is
*/ */
export const toNumber = (val: any): any => { export const toNumber = (val: any): any => {

View File

@ -46,7 +46,7 @@ export default targetPackages.map(pkg => {
* and remove them from the big export {} declaration * and remove them from the big export {} declaration
* otherwise it gets weird in vitepress `defineComponent` call with * otherwise it gets weird in vitepress `defineComponent` call with
* "the inferred type cannot be named without a reference" * "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} * @returns {import('rollup').Plugin}
*/ */
function patchTypes(pkg) { function patchTypes(pkg) {

View File

@ -189,7 +189,7 @@ export function constEnum() {
) )
// 3. during transform: // 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 // 3.2 files using const enum: inject into esbuild define
/** /**
* @type {import('rollup').Plugin} * @type {import('rollup').Plugin}