Skip to content

chore: fix typo #7693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/compileScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export function compileScript(
const scriptAst = ctx.scriptAst
const scriptSetupAst = ctx.scriptSetupAst!

// 1.1 walk import delcarations of <script>
// 1.1 walk import declarations of <script>
if (scriptAst) {
for (const node of scriptAst.body) {
if (node.type === 'ImportDeclaration') {
Expand Down
4 changes: 2 additions & 2 deletions packages/runtime-core/__tests__/apiWatch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ describe('api: watch', () => {
},
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
Expand Down Expand Up @@ -1171,7 +1171,7 @@ describe('api: watch', () => {
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 () => {

This comment was marked as resolved.

const trigger = ref(0)
let countWE = 0
let countW = 0
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export interface ComponentInternalInstance {
*/
ssrRender?: Function | null
/**
* Object containing values this component provides for its descendents
* Object containing values this component provides for its descendants
* @internal
*/
provides: Data
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-dom/__tests__/customElement.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ describe('defineCustomElement', () => {
emit('my-click', 1)
},
onMousedown: () => {
emit('myEvent', 1) // validate hypenization
emit('myEvent', 1) // validate hyphenation
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion packages/server-renderer/__tests__/ssrScopeId.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ describe('ssr: scopedId runtime behavior', () => {
})

// #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>`)
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
export const toNumber = (val: any): any => {
Expand Down
2 changes: 1 addition & 1 deletion rollup.dts.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default targetPackages.map(pkg => {
* 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) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/const-enum.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export function constEnum() {
)

// 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}
Expand Down