Skip to content

Commit e40e45c

Browse files
committed
- Updated TypeScript to latest 5.9.3 version.
1 parent 34ba508 commit e40e45c

File tree

11 files changed

+27
-25
lines changed

11 files changed

+27
-25
lines changed

Rock.JavaScript.Obsidian.Blocks/package-lock.json

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Rock.JavaScript.Obsidian.Blocks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"ts-jest": "^29.4.5",
4141
"ts-node": "^10.9.2",
4242
"tslib": "^2.8.1",
43-
"typescript": "^5.2.2",
43+
"typescript": "^5.9.3",
4444
"vue": "^3.3.10",
4545
"vue-eslint-parser": "^9.4.3",
4646
"vue-tsc": "^2.1.6"

Rock.JavaScript.Obsidian.Blocks/src/CheckIn/CheckInKiosk/nativeViewTransition.partial.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ const NativeViewTransition: ComponentOptions = {
6767
}
6868

6969
// If we don't support transitions then just return the child.
70-
// @ts-expect-error startViewTransition is not standard yet.
7170
if (!document.startViewTransition) {
7271
return children;
7372
}
@@ -90,7 +89,6 @@ const NativeViewTransition: ComponentOptions = {
9089
// Note that we are starting to animate.
9190
animationState = 1;
9291

93-
// @ts-expect-error startViewTransition is not standard yet.
9492
document.startViewTransition(async () => {
9593
// Note that we are ready to accept new content.
9694
animationState = 2;

Rock.JavaScript.Obsidian.Blocks/src/Core/CampusDetail/editPanel.partial.obs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,10 @@
387387
// The `editingTopic` variable happens to be null if a new topic is being added.
388388
// The "if block" contains the logic to add the new topic if needed.
389389

390-
let editingTopic = campusTopics.value.find(c => c.type?.value === campusTopicType.value?.value ?? false) || null;
390+
let editingTopic = campusTopics.value.find(c => c.type?.value === campusTopicType.value?.value) || null;
391391

392392
if (editingTopic === null && campusTopicGuid.value !== null) {
393-
editingTopic = campusTopics.value.find(c => c.guid === campusTopicGuid.value ?? false) || null;
393+
editingTopic = campusTopics.value.find(c => c.guid === campusTopicGuid.value) || null;
394394
}
395395

396396
if (editingTopic === null) {

Rock.JavaScript.Obsidian.Blocks/src/Core/locationDetail.obs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286

287287
if (config.options?.hasPersonId) {
288288
panelMode.value = DetailPanelMode.Add;
289-
locationEditBag.value = { bag: locationViewBag.value } ?? { bag: {} as LocationBag };
289+
locationEditBag.value = { bag: locationViewBag.value };
290290
}
291291

292292
// Handle any initial error conditions or the need to go into edit mode.

Rock.JavaScript.Obsidian.Blocks/src/Event/RegistrationEntry/feeField.partial.obs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import { NumberUpDownGroupOption } from "@Obsidian/Types/Controls/numberUpDownGroup";
2121
import { updateRefValue } from "@Obsidian/Utility/component";
2222
import { areEqual } from "@Obsidian/Utility/guid";
23-
import { asFormattedString, toCurrencyOrNull} from "@Obsidian/Utility/numberUtils";
23+
import { asFormattedString, toCurrencyOrNull } from "@Obsidian/Utility/numberUtils";
2424
import { ListItemBag } from "@Obsidian/ViewModels/Utility/listItemBag";
2525
import { RegistrationEntryFeeBag } from "@Obsidian/ViewModels/Blocks/Event/RegistrationEntry/registrationEntryFeeBag";
2626
import { RegistrationEntryFeeItemBag } from "@Obsidian/ViewModels/Blocks/Event/RegistrationEntry/registrationEntryFeeItemBag";
@@ -196,17 +196,17 @@
196196

197197
const dropDownListOptions = computed((): ListItemBag[] => {
198198
return props.fee.items
199-
?.filter(i => !props.fee.hideWhenNoneRemaining || i.countRemaining === null || i.countRemaining === undefined || (i.countRemaining + internalValue.value[i.guid] ?? 0) > 0)
199+
?.filter(i => !props.fee.hideWhenNoneRemaining || i.countRemaining === null || i.countRemaining === undefined || (i.countRemaining + (internalValue.value[i.guid] ?? 0)) > 0)
200200
.map(i => ({
201201
text: getItemLabel(i),
202202
value: i.guid,
203-
disabled: i.countRemaining !== null && i.countRemaining !== undefined && (i.countRemaining + internalValue.value[i.guid] ?? 0) === 0
203+
disabled: i.countRemaining !== null && i.countRemaining !== undefined && (i.countRemaining + (internalValue.value[i.guid] ?? 0)) === 0
204204
})) ?? [];
205205
});
206206

207207
const numberUpDownGroupOptions = computed((): NumberUpDownGroupOption[] => {
208208
return props.fee.items
209-
?.filter(i => !props.fee.hideWhenNoneRemaining || i.countRemaining === null || i.countRemaining === undefined || (i.countRemaining + internalValue.value[i.guid] ?? 0) > 0)
209+
?.filter(i => !props.fee.hideWhenNoneRemaining || i.countRemaining === null || i.countRemaining === undefined || (i.countRemaining + (internalValue.value[i.guid] ?? 0)) > 0)
210210
.map(i => ({
211211
key: i.guid,
212212
label: getItemLabel(i),

Rock.JavaScript.Obsidian.Blocks/src/Tv/RokuApplicationDetail/editPanel.partial.obs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
const apiKey = propertyRef(props.modelValue.bag?.apiKey ?? "", "ApiKey");
106106
const isActive = propertyRef(props.modelValue.bag?.isActive ?? false, "IsActive");
107107
const pageViewRetentionDuration = propertyRef(props.modelValue.bag?.pageViewRetentionDuration, "PageViewRetentionDuration");
108-
const authenticationPage = propertyRef<PageRouteValueBag | null>({ page: props.modelValue.bag?.loginPage } ?? null, "AuthenticationPage");
108+
const authenticationPage = propertyRef<PageRouteValueBag | null>({ page: props.modelValue.bag?.loginPage }, "AuthenticationPage");
109109
const rokuComponents = propertyRef(props.modelValue.bag?.rokuComponents ?? "", "RokuComponents");
110110
const showRokuComponents = ref(props.modelValue.bag?.showRokuComponents ?? false);
111111

@@ -153,4 +153,4 @@
153153
// Watch for any changes to props that represent properties and then
154154
// automatically emit which property changed.
155155
watchPropertyChanges(propRefs, emit);
156-
</script>
156+
</script>

Rock.JavaScript.Obsidian/Framework/Controls/datePartsPicker.obs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
});
139139

140140
const internalDateKey = computed((): string => {
141-
if ((!props.modelValue?.year ?? 0) && !computedRequireYear.value) {
141+
if (!(props.modelValue?.year ?? 0) && !computedRequireYear.value) {
142142
const dateKey = DateKey.toNoYearDateKey(props.modelValue?.month ?? 0, props.modelValue?.day ?? 0);
143143

144144
return dateKey;

Rock.JavaScript.Obsidian/Framework/Controls/personPicker.obs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<div>{{ result.email }}</div>
8484
</div>
8585
<ul class="phones list-unstyled m-0">
86-
<li v-for="phone in result.phoneNumbers" :key="phone.type ?? '' + phone.number ?? ''">{{ phone.isUnlisted ? 'Unlisted' : phone.number }} <small v-if="phone.type" class="text-muted">{{ phone.type.charAt(0) }}</small></li>
86+
<li v-for="phone in result.phoneNumbers" :key="phone.type ?? phone.number ?? ''">{{ phone.isUnlisted ? 'Unlisted' : phone.number }} <small v-if="phone.type" class="text-muted">{{ phone.type.charAt(0) }}</small></li>
8787
</ul>
8888
<div class="taglist justify-content-end">
8989
<Tag v-for="tag in getTags(result)" :key="tag.name ?? undefined" :modelValue="tag" class="mb-0" disabled />

Rock.JavaScript.Obsidian/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)