Skip to content

Commit c2d60b7

Browse files
author
那里好脏不可以
authored
chore: typo (#981)
1 parent 0db7433 commit c2d60b7

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

Diff for: .github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
env:
3131
CI: true
3232

33-
- name: Typing Declartion Tests
33+
- name: Typing Declaration Tests
3434
run: pnpm run test:dts
3535
env:
3636
CI: true

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export default {
334334

335335
`reactive` uses `Vue.observable` underneath which will ***mutate*** the original object.
336336

337-
> :bulb: In Vue 3, it will return an new proxy object.
337+
> :bulb: In Vue 3, it will return a new proxy object.
338338
339339
</details>
340340

@@ -391,7 +391,7 @@ watch(() => {
391391
⚠️ <code>createApp()</code> is global
392392
</summary>
393393

394-
In Vue 3, `createApp()` is introduced to provide context(plugin, components, etc.) isolation between app instances. Due the the design of Vue 2, in this plugin, we provide `createApp()` as a forward compatible API which is just an alias of the global.
394+
In Vue 3, `createApp()` is introduced to provide context(plugin, components, etc.) isolation between app instances. Due the design of Vue 2, in this plugin, we provide `createApp()` as a forward compatible API which is just an alias of the global.
395395

396396
```ts
397397
const app1 = createApp(RootComponent1)
@@ -443,7 +443,7 @@ export default {
443443
⚠️ <code>shallowReadonly()</code> will create a new object and with the same root properties, new properties added will <b>not</b> be readonly or reactive.
444444
</summary>
445445

446-
> :bulb: In Vue 3, it will return an new proxy object.
446+
> :bulb: In Vue 3, it will return a new proxy object.
447447
448448
</details>
449449

@@ -553,6 +553,6 @@ defineComponent({
553553

554554
### Performance Impact
555555

556-
Due the the limitation of Vue2's public API. `@vue/composition-api` inevitably introduces some performance overhead. Note that in most scenarios, this shouldn't be the source of performance issues.
556+
Due the limitation of Vue2's public API. `@vue/composition-api` inevitably introduces some performance overhead. Note that in most scenarios, this shouldn't be the source of performance issues.
557557

558558
You can check the [benchmark results](https://antfu.github.io/vue-composition-api-benchmark-results/) for more details.

Diff for: src/apis/watch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ function createWatcher(
383383
if (isReactive(watcher.value) && watcher.value.__ob__?.dep && deep) {
384384
watcher.value.__ob__.dep.addSub({
385385
update() {
386-
// this will force the source to be revaluated and the callback
386+
// this will force the source to be reevaluated and the callback
387387
// executed if needed
388388
watcher.run()
389389
},

Diff for: test/v3/reactivity/del.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ describe('reactivity/del', () => {
4545
it('should trigger reactivity when using del on array to delete index out of valid array length', () => {
4646
const arr = ref<number[]>([])
4747
const MAX_VALID_ARRAY_LENGTH = Math.pow(2, 32) - 1
48-
const NON_VALIDD_INDEX = MAX_VALID_ARRAY_LENGTH + 1
49-
set(arr.value, NON_VALIDD_INDEX, 0)
48+
const NON_VALID_INDEX = MAX_VALID_ARRAY_LENGTH + 1
49+
set(arr.value, NON_VALID_INDEX, 0)
5050
const spy = vi.fn()
5151
watchEffect(
5252
() => {
@@ -55,7 +55,7 @@ describe('reactivity/del', () => {
5555
{ flush: 'sync' }
5656
)
5757
expect(spy).toBeCalledTimes(1)
58-
del(arr.value, NON_VALIDD_INDEX)
58+
del(arr.value, NON_VALID_INDEX)
5959
expect(spy).toBeCalledTimes(2)
6060
})
6161
})

Diff for: test/v3/reactivity/effectScope.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe('reactivity/effect/scope', () => {
132132
await nextTick()
133133
expect(dummy).toBe(7)
134134

135-
// nested scope should not be stoped
135+
// nested scope should not be stopped
136136
expect(doubled).toBe(12)
137137
})
138138

Diff for: test/vue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// `vue.common.js` is required for shallow mounts.
2-
// Typescript can not infer it properly, this file is a workround to set the type
2+
// Typescript can not infer it properly, this file is a workaround to set the type
33

44
// @ts-ignore
55
import _vue from 'vue/dist/vue.common'

0 commit comments

Comments
 (0)