Skip to content

Commit ab9256a

Browse files
authored
chore: fix typos in defineOptions (#8277)
1 parent 121896e commit ab9256a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/compiler-sfc/__tests__/compileScript/defineOptions.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('defineOptions()', () => {
2828
expect(content).not.toMatch('defineOptions')
2929
})
3030

31-
it('should emit an error with two defineProps', () => {
31+
it('should emit an error with two defineOptions', () => {
3232
expect(() =>
3333
compile(`
3434
<script setup>

packages/compiler-sfc/src/script/defineProps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ function genDestructuredDefaultValue(
325325
// If the default value is a function or is an identifier referencing
326326
// external value, skip factory wrap. This is needed when using
327327
// destructure w/ runtime declaration since we cannot safely infer
328-
// whether tje expected runtime prop type is `Function`.
328+
// whether the expected runtime prop type is `Function`.
329329
const needSkipFactory =
330330
!inferredType &&
331331
(isFunctionType(unwrapped) || unwrapped.type === 'Identifier')

packages/runtime-core/src/apiSetupHelpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function defineExpose<
176176
/**
177177
* Vue `<script setup>` compiler macro for declaring a component's additional
178178
* options. This should be used only for options that cannot be expressed via
179-
* Composition API - e.g. `inhertiAttrs`.
179+
* Composition API - e.g. `inheritAttrs`.
180180
*
181181
* @see {@link https://vuejs.org/api/sfc-script-setup.html#defineoptions}
182182
*/

0 commit comments

Comments
 (0)