-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 📌 Remove unused code in Minimum Example sample code (#221)
* fix: 📌 Removed unused variable `parent` in sample code in Minimum Example There is an unused variable `parent` in the sample code `packages/compiler-core/parse.ts` in the Minimum Example, The following type check error occurs, so I removed it from the sample code and the documentation. ``sh ... /... /packages/compiler-core/parse.ts:201:9 - error TS6133: 'parent' is declared but its value is never read. 201 const parent = last(ancestors) ~~~~~~ ``` * fix: 📌 Removed unused `Data` in sample code in Minimum Example There is an unused `Data` in the sample code `packages/runtime-core/componentOptions.ts` in the Minimum Example, The following type check error occurs, so I removed it from the sample code. ```sh ../../packages/runtime-core/componentOptions.ts:1:1 - error TS6133: 'Data' is declared but its value is never read. 1 import { Data } from './component' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
- Loading branch information
1 parent
95b568a
commit 9df461d
Showing
13 changed files
with
0 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...impls/10_minimum_example/060_template_compiler3/packages/runtime-core/componentOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import { Data } from './component' | ||
|
||
export type ComponentOptions = { | ||
props?: Record<string, any> | ||
setup?: ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
book/impls/10_minimum_example/070_sfc_compiler/packages/runtime-core/componentOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import { Data } from './component' | ||
|
||
export type ComponentOptions = { | ||
props?: Record<string, any> | ||
setup?: ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
book/impls/10_minimum_example/070_sfc_compiler2/packages/runtime-core/componentOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import { Data } from './component' | ||
|
||
export type ComponentOptions = { | ||
props?: Record<string, any> | ||
setup?: ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
book/impls/10_minimum_example/070_sfc_compiler3/packages/runtime-core/componentOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import { Data } from './component' | ||
|
||
export type ComponentOptions = { | ||
props?: Record<string, any> | ||
setup?: ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
book/impls/10_minimum_example/070_sfc_compiler4/packages/runtime-core/componentOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import { Data } from './component' | ||
|
||
export type ComponentOptions = { | ||
props?: Record<string, any> | ||
setup?: ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters