Skip to content

Commit ba222d4

Browse files
committed
1 parent 8ad0787 commit ba222d4

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

src/Exceptionless.Web/ClientApp/src/lib/features/events/components/views/Request.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
.sort()
4040
.reduce(
4141
(acc, key) => {
42-
acc[key] = request.headers?.[key].join(',') ?? '';
42+
acc[key] = request.headers?.[key]?.join(',') ?? '';
4343
return acc;
4444
},
4545
{} as Record<string, string>

src/Exceptionless.Web/ClientApp/src/lib/features/events/models/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ export interface SubmissionClient {
5353
}
5454

5555
export class PersistentEvent extends PersistentEventBase {
56-
@IsOptional() @ValidateNested() data?: IPersistentEventData = undefined;
57-
@IsOptional() type?: PersistentEventKnownTypes = undefined;
56+
@IsOptional() @ValidateNested() override data?: IPersistentEventData = undefined;
57+
@IsOptional() override type?: PersistentEventKnownTypes = undefined;
5858
}

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/DateRangeDropdown.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
88
let { value = $bindable() }: Props = $props();
99
10-
const items = [
10+
type Item = { label: string; value: string };
11+
const items: Item[] = [
1112
{ label: 'Last Hour', value: 'last hour' },
1213
{ label: 'Last 24 Hours', value: 'last 24 hours' },
1314
{ label: 'Last Week', value: 'last week' },
1415
{ label: 'Last 30 Days', value: 'last 30 days' },
1516
{ label: 'All Time', value: '' }
1617
];
1718
18-
let selected = $derived(items.find((item) => item.value === value) || items[items.length - 1]);
19+
let selected = $derived((items.find((item) => item.value === value) || items[items.length - 1]) as Item);
1920
</script>
2021

2122
<Select.Root type="single" {items} bind:value>

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/filters/filters.svelte.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ export function processFilterRules(filters: IFilter[], changed?: IFilter): IFilt
612612
const filtered: IFilter[] = [];
613613
Object.entries(groupedFilters).forEach(([, items]) => {
614614
if (items && items.length > 0) {
615-
filtered.push(items[0]);
615+
filtered.push(items[0] as IFilter);
616616
}
617617
});
618618

src/Exceptionless.Web/ClientApp/src/lib/features/users/api.svelte.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function mutateEmailAddress(props: UpdateEmailAddressProps) {
5050
},
5151
mutationKey: queryKeys.idEmailAddress(props.id),
5252
onSuccess: (data, variables) => {
53-
const partialUserData: User = { email_address: variables.email_address, is_email_address_verified: data.is_verified };
53+
const partialUserData: Partial<User> = { email_address: variables.email_address, is_email_address_verified: data.is_verified };
5454

5555
const user = queryClient.getQueryData<User>(queryKeys.id(props.id));
5656
if (user) {

src/Exceptionless.Web/ClientApp/src/routes/(app)/account/manage/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232
});
3333
34-
const updateEmailAddressForm = superForm(defaults(userResponse.data ?? {}, classvalidatorClient(User)), {
34+
const updateEmailAddressForm = superForm(defaults(userResponse.data ?? new User(), classvalidatorClient(User)), {
3535
dataType: 'json',
3636
id: 'update-email-address',
3737
async onUpdate({ form, result }) {
@@ -58,7 +58,7 @@
5858
validators: classvalidatorClient(User)
5959
});
6060
61-
const updateUserForm = superForm(defaults(userResponse.data ?? {}, classvalidatorClient(UpdateUser)), {
61+
const updateUserForm = superForm(defaults(userResponse.data ?? new UpdateUser(), classvalidatorClient(UpdateUser)), {
6262
dataType: 'json',
6363
id: 'update-user',
6464
async onUpdate({ form, result }) {

src/Exceptionless.Web/ClientApp/tsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
"experimentalDecorators": true,
88
"emitDecoratorMetadata": true,
99
"forceConsistentCasingInFileNames": true,
10+
"moduleDetection": "force",
11+
"moduleResolution": "bundler",
12+
"noImplicitOverride": true,
13+
"noUncheckedIndexedAccess": true,
1014
"resolveJsonModule": true,
1115
"skipLibCheck": true,
1216
"sourceMap": true,
13-
"strict": true,
14-
"moduleResolution": "bundler"
17+
"strict": true
1518
}
1619
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
1720
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files

src/Exceptionless.Web/ClientApp/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function getAspNetConfig() {
8787
if (aspnetHttpsPort) {
8888
url = `https://localhost:${aspnetHttpsPort}`;
8989
} else if (aspnetUrls) {
90-
url = aspnetUrls.split(';')[0];
90+
url = aspnetUrls.split(';')[0] as string;
9191
}
9292

9393
const wsUrl = url.replace('https://', 'wss://').replace('http://', 'ws://');

0 commit comments

Comments
 (0)