Skip to content
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

fix(template): prevent default values from overriding props #17167

Merged
merged 5 commits into from
Feb 28, 2025
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/shared/src/is.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function isNumber (o: unknown): o is number {
}

export function isBooleanStringLiteral (o: unknown): o is string {
return o === 'true' || o === 'false'
return o === 'true' || o === 'false' || o === '!0' || o === '!1'
}

export function isObjectStringLiteral (o: unknown): o is string {
Expand Down
144 changes: 72 additions & 72 deletions tests/__tests__/__snapshots__/babel.spec.ts.snap

Large diffs are not rendered by default.

144 changes: 72 additions & 72 deletions tests/__tests__/__snapshots__/compiler-macros.spec.ts.snap

Large diffs are not rendered by default.

752 changes: 376 additions & 376 deletions tests/__tests__/__snapshots__/config.spec.ts.snap

Large diffs are not rendered by default.

288 changes: 144 additions & 144 deletions tests/__tests__/__snapshots__/css-modules.spec.ts.snap

Large diffs are not rendered by default.

388 changes: 194 additions & 194 deletions tests/__tests__/__snapshots__/framework.spec.ts.snap

Large diffs are not rendered by default.

258 changes: 129 additions & 129 deletions tests/__tests__/__snapshots__/mini-platform.spec.ts.snap

Large diffs are not rendered by default.

144 changes: 72 additions & 72 deletions tests/__tests__/__snapshots__/parse-html.spec.ts.snap

Large diffs are not rendered by default.

432 changes: 216 additions & 216 deletions tests/__tests__/__snapshots__/prerender.spec.ts.snap

Large diffs are not rendered by default.

720 changes: 360 additions & 360 deletions tests/__tests__/__snapshots__/sass.spec.ts.snap

Large diffs are not rendered by default.

194 changes: 97 additions & 97 deletions tests/__tests__/__snapshots__/skyline.spec.ts.snap

Large diffs are not rendered by default.

144 changes: 72 additions & 72 deletions tests/__tests__/__snapshots__/subpackages.spec.ts.snap

Large diffs are not rendered by default.

334 changes: 167 additions & 167 deletions tests/__tests__/__snapshots__/tabbar.spec.ts.snap

Large diffs are not rendered by default.

144 changes: 72 additions & 72 deletions tests/__tests__/__snapshots__/ts.spec.ts.snap

Large diffs are not rendered by default.

146 changes: 73 additions & 73 deletions tests/__tests__/__snapshots__/wx-hybrid.spec.ts.snap

Large diffs are not rendered by default.

Loading